CommandTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_fires_require_pin_commands() 0 19 1
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\Tests;
4
5
use Illuminate\Foundation\Testing\RefreshDatabase;
6
7
class CommandTest extends TestCase
8
{
9
    use RefreshDatabase;
0 ignored issues
show
introduced by
The trait Illuminate\Foundation\Testing\RefreshDatabase requires some properties which are not provided by Ikechukwukalu\Sanctumauthstarter\Tests\CommandTest: $seeder, $seed, $connectionsToTransact, $dropTypes, $dropViews
Loading history...
10
11
    public function test_fires_require_pin_commands(): void
12
    {
13
        $this->artisan('sas:setup')->assertSuccessful();
14
15
        $this->artisan('sas:controllers')->assertSuccessful();
16
17
        $this->artisan('sas:routes')->assertSuccessful();
18
19
        $this->artisan('sas:tests')->assertSuccessful();
20
21
        $this->artisan('vendor:publish --tag=sas-config')->assertSuccessful();
22
23
        $this->artisan('vendor:publish --tag=sas-migrations')->assertSuccessful();
24
25
        $this->artisan('vendor:publish --tag=sas-lang')->assertSuccessful();
26
27
        $this->artisan('vendor:publish --tag=sas-views')->assertSuccessful();
28
29
        $this->artisan('vendor:publish --tag=sas-feature-tests')->assertSuccessful();
30
    }
31
}
32