| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testDirectives() |
||
| 11 | { |
||
| 12 | $theme = $this->theme('bands/icon')->findOrCreate(); |
||
| 13 | |||
| 14 | $theme->component('musics/danger-calling')->create(); |
||
| 15 | $theme->component('musics/night-of-the-crime')->create(); |
||
| 16 | $theme->component('musics/missing')->create(); |
||
| 17 | |||
| 18 | $directives = $theme->directives(); |
||
| 19 | |||
| 20 | $this->assertIsArray($directives); |
||
| 21 | |||
| 22 | foreach ($directives as $directive) { |
||
| 23 | $this->assertInstanceOf(Component::class, $directive); |
||
| 24 | } |
||
| 26 | } |