Test Failed
Push — master ( 93ef3c...0c96ba )
by Arthur
09:20
created

Auth0AuthenticationTest::testAuthorized()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 03.10.18
6
 * Time: 22:58.
7
 */
8
9
namespace Foundation\Tests;
10
11
use Foundation\Abstracts\Tests\HttpTest;
12
13
class Auth0AuthenticationTest extends HttpTest
14
{
15
    public function testAuthorized()
16
    {
17
        $http = $this->http('GET', '/authorized');
18
        $http->assertStatus(200);
19
    }
20
21
    public function testUnauthorized()
22
    {
23
        $http = $this->httpNoAuth('GET', '/authorized');
24
        $http->assertStatus(401);
25
    }
26
}
27