| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function it_creates_commands(): void |
||
| 17 | { |
||
| 18 | Artisan::call('make:command', ['name' => 'FooCommand']); |
||
| 19 | |||
| 20 | $file = app_path('Commands'.DIRECTORY_SEPARATOR.'FooCommand.php'); |
||
| 21 | |||
| 22 | $this->assertTrue(File::exists($file)); |
||
| 23 | $this->assertContains('class FooCommand extends Command', File::get($file)); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |