maestriam /
samurai
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Maestriam\Samurai\Tests\Feature\Facade; |
||
| 4 | |||
| 5 | use Maestriam\Samurai\Entities\Theme; |
||
| 6 | use Maestriam\Samurai\Support\Samurai; |
||
| 7 | use Maestriam\Samurai\Tests\TestCase; |
||
| 8 | |||
| 9 | class GetCurrentThemeTest extends TestCase |
||
| 10 | { |
||
| 11 | public function testGetExistingTheme() |
||
| 12 | { |
||
| 13 | $theme = new Theme('bands/alice-in-chains'); |
||
| 14 | |||
| 15 | $theme->make()->use(); |
||
| 16 | |||
| 17 | $current = Samurai::base()->current(); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 18 | |||
| 19 | $this->assertValidTheme($current); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testGetInexistingCurrentTheme() |
||
| 23 | { |
||
| 24 | $current = Samurai::base()->current(); |
||
| 25 | |||
| 26 | $this->assertNull($current); |
||
| 27 | } |
||
| 28 | } |