Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class BroadcastTest extends HttpTest |
||
16 | { |
||
17 | public function testPrivateChannelAuthenticationSuccess() |
||
18 | { |
||
19 | $user = $this->getHttpUser(); |
||
20 | $id = $user->getKey(); |
||
21 | $response = $this->http('POST', '/broadcasting/auth', [ |
||
22 | 'socket_id' => '125200.2991064', |
||
23 | 'channel_name' => 'private-user.' . $id |
||
24 | ]); |
||
25 | $response->assertStatus(200); |
||
26 | $this->assertArrayHasKey('auth', $this->decodeHttpContent($response->content(), false)); |
||
27 | } |
||
28 | |||
29 | public function testPrivateChannelAuthenticationForbidden() |
||
36 | } |
||
37 | |||
39 |