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

BroadcastTest::testAuth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
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