ImportThemeTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testImportTheme() 0 15 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Unit\Entities\Theme;
4
5
use Maestriam\Samurai\Entities\Theme;
6
7
class ImportThemeTest extends ThemeTestCase
8
{
9
    public function testImportTheme()
10
    {
11
        $name = 'bands/manowar';
12
13
        $theme1 = new Theme($name);
14
        
15
        $theme1->description('Hail to the Engaland')->make();
16
        
17
        $theme2 = new Theme($name);        
18
19
        $this->assertEquals($theme1->author(), $theme2->author());
20
        $this->assertEquals($theme1->package(), $theme2->package());
21
        $this->assertEquals($theme1->description(), $theme2->description());
22
        $this->assertEquals($theme1->paths()->root(), $theme2->paths()->root());
23
        $this->assertEquals($theme1->paths()->source(), $theme2->paths()->source());
24
    }
25
}