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

Auth0AuthenticationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testUnauthorized() 0 4 1
A testAuthorized() 0 4 1
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