AllThemesTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testEmptyThemeBase() 0 7 1
A testAllThemes() 0 12 1
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
}