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