Completed
Push — master ( fac46d...1183f0 )
by Anton
12:24
created

tests/Unit/Console/Command/SetupTest.php (1 issue)

Check that there are no missing implementations for abstract methods

Bug Major

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\Unit\Console\Commands;
15
16
use Cog\Tests\Laravel\Paket\TestCase;
17
18
final class SetupTest 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...
19
{
20
    /** @test */
21
    public function it_publishes_assets_on_setup(): void
22
    {
23
        $this->withoutMockingConsoleOutput();
24
        $status = $this->artisan('paket:setup');
25
26
        $this->assertSame(0, $status);
27
    }
28
29
    /** @test */
30
    public function it_publishes_assets_on_setup_with_force_flag(): void
31
    {
32
        $this->withoutMockingConsoleOutput();
33
        $status = $this->artisan('paket:setup', [
34
            '--force' => true,
35
        ]);
36
37
        $this->assertSame(0, $status);
38
    }
39
}
40