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

SetupTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_publishes_assets_on_setup() 0 7 1
A it_publishes_assets_on_setup_with_force_flag() 0 9 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\Unit\Console\Commands;
15
16
use Cog\Tests\Laravel\Paket\TestCase;
17
18
final class SetupTest extends TestCase
0 ignored issues
show
Bug introduced by
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();
0 ignored issues
show
Bug introduced by
The method withoutMockingConsoleOutput() does not seem to exist on object<Cog\Tests\Laravel...ole\Commands\SetupTest>.

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...
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();
0 ignored issues
show
Bug introduced by
The method withoutMockingConsoleOutput() does not seem to exist on object<Cog\Tests\Laravel...ole\Commands\SetupTest>.

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...
33
        $status = $this->artisan('paket:setup', [
34
            '--force' => true,
35
        ]);
36
37
        $this->assertSame(0, $status);
38
    }
39
}
40