5
5
use BeyondCode \LaravelWebSockets \API \FetchChannels ;
6
6
use GuzzleHttp \Psr7 \Request ;
7
7
use Illuminate \Http \JsonResponse ;
8
- use Pusher \Pusher ;
9
8
use Symfony \Component \HttpKernel \Exception \HttpException ;
10
9
11
10
class FetchChannelsTest extends TestCase
@@ -23,7 +22,7 @@ public function test_invalid_signatures_can_not_access_the_api()
23
22
'appId ' => '1234 ' ,
24
23
];
25
24
26
- $ queryString = Pusher ::build_auth_query_string (
25
+ $ queryString = self ::build_auth_query_string (
27
26
'TestKey ' , 'InvalidSecret ' , 'GET ' , $ requestPath
28
27
);
29
28
@@ -46,7 +45,7 @@ public function test_it_returns_the_channel_information()
46
45
'appId ' => '1234 ' ,
47
46
];
48
47
49
- $ queryString = Pusher ::build_auth_query_string (
48
+ $ queryString = self ::build_auth_query_string (
50
49
'TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath
51
50
);
52
51
@@ -81,7 +80,7 @@ public function test_it_returns_the_channel_information_for_prefix()
81
80
'appId ' => '1234 ' ,
82
81
];
83
82
84
- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
83
+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
85
84
'filter_by_prefix ' => 'presence-global ' ,
86
85
]);
87
86
@@ -117,7 +116,7 @@ public function test_it_returns_the_channel_information_for_prefix_with_user_cou
117
116
'appId ' => '1234 ' ,
118
117
];
119
118
120
- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
119
+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
121
120
'filter_by_prefix ' => 'presence-global ' ,
122
121
'info ' => 'user_count ' ,
123
122
]);
@@ -156,7 +155,7 @@ public function test_can_not_get_non_presence_channel_user_count()
156
155
'appId ' => '1234 ' ,
157
156
];
158
157
159
- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
158
+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath , [
160
159
'info ' => 'user_count ' ,
161
160
]);
162
161
@@ -180,7 +179,7 @@ public function test_it_returns_empty_object_for_no_channels_found()
180
179
'appId ' => '1234 ' ,
181
180
];
182
181
183
- $ queryString = Pusher ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath );
182
+ $ queryString = self ::build_auth_query_string ('TestKey ' , 'TestSecret ' , 'GET ' , $ requestPath );
184
183
185
184
$ request = new Request ('GET ' , "{$ requestPath }? {$ queryString }& " .http_build_query ($ routeParams ));
186
185
0 commit comments