Passed
Push — master ( e5b31a...cf340d )
by Arthur
04:48
created

BroadcastTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAuth() 0 9 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 14.10.18
6
 * Time: 22:56
7
 */
8
9
namespace Foundation\Tests;
10
11
12
use Foundation\Abstracts\Tests\HttpTest;
13
14
class BroadcastTest extends HttpTest
15
{
16
    public function testAuth()
17
    {
18
        $user = $this->getHttpUser();
19
        $response = $this->http('POST', '/broadcasting/auth', [
20
            'socket_id' => '125191.2709135',
21
            'channel_name' => 'private-user.' . $user->getKey()
22
        ]);
23
24
        $response->assertStatus(200);
25
26
    }
27
}
28