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