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

ActionTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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