Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testAddCommands(): void |
||
26 | { |
||
27 | $commands = [ |
||
28 | FakeDefaultCommand::class, |
||
29 | FakeFooCommand::class, |
||
30 | FakeOtherCommand::class, |
||
31 | FakeHiddenCommand::class, |
||
32 | ]; |
||
33 | |||
34 | $appCommands = collect(Artisan::all()) |
||
35 | ->map( |
||
36 | function ($command) { |
||
37 | return get_class($command); |
||
38 | } |
||
39 | ) |
||
40 | ->toArray(); |
||
41 | |||
42 | foreach ($commands as $command) { |
||
43 | $this->assertContains($command, $appCommands); |
||
44 | } |
||
57 |