55use BeyondCode \LaravelWebSockets \API \FetchChannels ;
66use GuzzleHttp \Psr7 \Request ;
77use Illuminate \Http \JsonResponse ;
8- use Pusher \Pusher ;
98use Symfony \Component \HttpKernel \Exception \HttpException ;
109
1110class FetchChannelsTest extends TestCase
@@ -23,7 +22,7 @@ public function test_invalid_signatures_can_not_access_the_api()
2322 'appId ' => '1234 ' ,
2423 ];
2524
26- $ queryString = Pusher ::build_auth_query_string (
25+ $ queryString = self ::build_auth_query_string (
2726 'TestKey ' , 'InvalidSecret ' , 'GET ' , $ requestPath
2827 );
2928
@@ -46,7 +45,7 @@ public function test_it_returns_the_channel_information()
4645 'appId ' => '1234 ' ,
4746 ];
4847
49- $ queryString = Pusher ::build_auth_query_string (
48+ $ queryString = self ::build_auth_query_string (
5049 'TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath
5150 );
5251
@@ -81,7 +80,7 @@ public function test_it_returns_the_channel_information_for_prefix()
8180 'appId ' => '1234 ' ,
8281 ];
8382
84- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
83+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
8584 'filter_by_prefix ' => 'presence-global ' ,
8685 ]);
8786
@@ -117,7 +116,7 @@ public function test_it_returns_the_channel_information_for_prefix_with_user_cou
117116 'appId ' => '1234 ' ,
118117 ];
119118
120- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
119+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
121120 'filter_by_prefix ' => 'presence-global ' ,
122121 'info ' => 'user_count ' ,
123122 ]);
@@ -156,7 +155,7 @@ public function test_can_not_get_non_presence_channel_user_count()
156155 'appId ' => '1234 ' ,
157156 ];
158157
159- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
158+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
160159 'info ' => 'user_count ' ,
161160 ]);
162161
@@ -180,7 +179,7 @@ public function test_it_returns_empty_object_for_no_channels_found()
180179 'appId ' => '1234 ' ,
181180 ];
182181
183- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath );
182+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath );
184183
185184 $ request = new Request ('GET ' , "{$ requestPath }? {$ queryString }& " .http_build_query ($ routeParams ));
186185
0 commit comments