Passed
Push — master ( ed297f...604ea4 )
by Giuliano
04:39
created

FirstThemeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetFirstTheme() 0 16 1
1
<?php
2
3
namespace Maestriam\Samurai\Entities\Base;
4
5
use Maestriam\Samurai\Entities\Base;
6
use Maestriam\Samurai\Entities\Theme;
7
use Maestriam\Samurai\Tests\TestCase;
8
9
class FirstThemeTest extends TestCase
10
{
11
    public function testGetFirstTheme()
12
    {
13
        $fst = 'bands/alan-parsons';
14
        $snd = 'bands/black-sabbath';
15
        $trd = 'bands/deep-purple';
16
17
        $this->theme($trd)->make();
18
        $this->theme($fst)->make();
19
        $this->theme($snd)->make();
20
21
        $base = new Base();
22
23
        $theme = $base->first();
24
25
        $this->assertInstanceOf(Theme::class, $theme);
26
        $this->assertEquals($theme->package(), $fst);
27
    }
28
}