ImportThemeTest::testImportTheme()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
rs 9.9666
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
}