Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ThemeVendorTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * Verifica se consegue definir o vendor do tema |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function testSetVendor() |
||
20 | { |
||
21 | $theme = new Theme('bands/warrant'); |
||
22 | |||
23 | $this->assertInstanceOf(Vendor::class, $theme->vendor()); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Verifica se consegue recuperar o vendor do tema |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function testGetVendorPackage() |
||
32 | { |
||
33 | $package = 'bands/warrant'; |
||
34 | |||
35 | $theme = new Theme($package); |
||
36 | |||
37 | $this->assertThemeVendor($theme->vendor(), $package); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Verifica se as informações do vendor, definidas no tema, |
||
42 | * foram criadas com sucesso |
||
43 | * |
||
44 | * @param mixed $vendor |
||
45 | * @param mixed $package |
||
46 | * @return void |
||
47 | */ |
||
48 | private function assertThemeVendor($vendor, $package) |
||
52 | } |
||
53 | } |