File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ public function serverInfo($region = null)
119
119
120
120
/**
121
121
* @param string $search
122
- * @param array|null $option
122
+ * @param array|null $options
123
123
* @return array
124
124
* @throws Exception
125
125
*/
126
- public function searchClans ($ search , $ option = null )
126
+ public function searchClans ($ search , $ options = null )
127
127
{
128
128
129
129
if (strlen ($ search ) == 0 ) {
Original file line number Diff line number Diff line change @@ -104,4 +104,22 @@ public function check_search_clans_with_default_option()
104
104
$ this ->assertEquals (100 , $ clans ['count ' ]);
105
105
}
106
106
107
+ /**
108
+ * @test
109
+ * @throws Exception
110
+ */
111
+ public function check_search_clans_with_custom_option ()
112
+ {
113
+ //Init Wargaming.net api key and region
114
+ $ war = new WargamingApi ("e9807cace93606169c54fb8e9ec763b2 " , "eu " );
115
+
116
+ $ clans = $ war ->searchClans ("aze " , [
117
+ "limit " => 10 ,
118
+ "pagination " => 1 ,
119
+ "region " => "ru "
120
+ ]);
121
+
122
+ $ this ->assertEquals (10 , $ clans ['count ' ]);
123
+ }
124
+
107
125
}
You can’t perform that action at this time.
0 commit comments