| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class CurrentThemeTest extends TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Verifica se consegue retornar o tema padrão do projeto ao defini-lo. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function testCurrentTheme() |
||
| 17 | { |
||
| 18 | $theme1 = new Theme('bands/dokken'); |
||
| 19 | $theme1->make()->use(); |
||
| 20 | |||
| 21 | $base = new Base(); |
||
| 22 | $theme2 = $base->current(); |
||
| 23 | |||
| 24 | $this->assertEquals($theme1->package(), $theme2->package()); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Verifica se retorna nulo ao tentar recuperar o tema padrão do |
||
| 29 | * projeto, sem ter defindo nenhum tema. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function testInexistingCurrentTheme() : void |
||
| 40 | } |
||
| 41 | } |