| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testeCreatingExistingTheme() |
||
| 30 | { |
||
| 31 | $name = 'bands/helloween'; |
||
| 32 | |||
| 33 | $err = 'Error to create theme: The theme [%s] already exists in project.'; |
||
| 34 | $cmd = sprintf('samurai:make-theme %s', $name); |
||
| 35 | $out = sprintf($err, $name); |
||
| 36 | |||
| 37 | $this->artisan($cmd)->assertExitCode(0); |
||
| 38 | |||
| 39 | $this->artisan($cmd) |
||
| 40 | ->expectsOutput($out) |
||
| 41 | ->assertExitCode(ThemeExistsException::CODE); |
||
| 42 | } |
||
| 43 | } |