Completed
Push — master ( b74201...e72f98 )
by Anton
05:56
created

tests/Feature/App/ActionTest.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
0 ignored issues
show
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
21
{
22
    protected function setUp(): void
23
    {
24
        parent::setUp();
25
26
        $this->withoutMiddleware([
0 ignored issues
show
The method withoutMiddleware() does not seem to exist on object<Cog\Tests\Laravel...Feature\App\ActionTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
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');
0 ignored issues
show
The method get() does not seem to exist on object<Cog\Tests\Laravel...Feature\App\ActionTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
36
37
        $response->assertStatus(200);
38
    }
39
}
40