LoadThemeTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoadTheme() 0 10 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Unit\Entities\Theme;
4
5
use Maestriam\Samurai\Entities\Theme;
6
7
class LoadThemeTest extends ThemeTestCase
8
{
9
    public function testLoadTheme()
10
    {
11
        $theme = $this->theme('bands/running-wild')->findOrCreate();
12
        
13
        $theme->include('musics/raise-your-fist')->create();
14
        $theme->include('musics/under-jolly-roger')->create();
15
        
16
        $ret = $theme->load();
17
18
        $this->assertInstanceOf(Theme::class, $ret);
19
    }
20
}