CommandTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 15
c 1
b 0
f 0
dl 0
loc 31
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_fires_make_service_command() 0 27 1
1
<?php
2
3
namespace Ikechukwukalu\Magicmake\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\Magicmake\Tests\CommandTest: $seeder, $seed, $connectionsToTransact, $dropTypes, $dropViews
Loading history...
10
11
    public function test_fires_make_service_command(): void
12
    {
13
        $this->artisan('magic:init')->assertSuccessful();
14
15
        $this->artisan('magic:model DeliveryType')->assertSuccessful();
16
17
        $this->artisan('magic:contract DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
18
19
        $this->artisan('magic:repository DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
20
21
        $this->artisan('magic:service DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
22
23
        $this->artisan('magic:controller DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
24
25
        $this->artisan('magic:createRequest DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
26
27
        $this->artisan('magic:updateRequest DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
28
29
        $this->artisan('magic:deleteRequest DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
30
31
        $this->artisan('magic:readRequest DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
32
33
        $this->artisan('magic:api DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
34
35
        $this->artisan('magic:test DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
36
37
        $this->artisan('magic:factory DeliveryType --variable=deliveryType --underscore=delivery_type')->assertSuccessful();
38
    }
39
}
40