Failed Conditions
Branch feature/refactoring-samurai (8cc7c1)
by Giuliano
03:49
created

AllThemesTest::testAllThemes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Maestriam\Samurai\Entities\Base;
4
5
use Maestriam\Samurai\Entities\Base;
6
use Maestriam\Samurai\Tests\TestCase;
7
8
class AllThemesTest extends TestCase
9
{
10
    public function testAllThemes()
11
    {
12
        $this->theme('bands/scorpions')->make();
13
        $this->theme('bands/judas-priest')->make();
14
        $this->theme('bands/twisted-sisters')->make();
15
     
16
        $base = new Base();
17
        
18
        $themes = $base->all();
19
        
20
        $this->assertIsArray($themes);
21
        $this->assertNotEmpty($themes);
22
    }
23
    
24
    public function testEmptyThemeBase()
25
    {
26
        $base = new Base();
27
        
28
        $themes = $base->all();
29
        
30
        $this->assertEmpty($themes);
31
    }
32
}