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

FirstThemeTest::testGetFirstTheme()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

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