Completed
Push — master ( 7baf45...156b00 )
by Anton
01:21
created

ActionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 1
A it_exposes_dashboard_when_url_is_default() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of Laravel Paket.
5
 *
6
 * (c) Anton Komarev <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cog\Tests\Laravel\Paket\Feature\App;
15
16
use Cog\Laravel\Paket\Http\Middlewares\Authorize;
17
use Cog\Tests\Laravel\Paket\TestCase;
18
use Orchestra\Testbench\Http\Middleware\VerifyCsrfToken;
19
20
final class ActionTest extends TestCase
21
{
22
    protected function setUp(): void
23
    {
24
        parent::setUp();
25
26
        $this->withoutMiddleware([
27
            Authorize::class,
28
            VerifyCsrfToken::class,
29
        ]);
30
    }
31
32
    /** @test */
33
    public function it_exposes_dashboard_when_url_is_default(): void
34
    {
35
        $response = $this->get('/paket');
36
37
        $response->assertStatus(200);
38
    }
39
}
40