LoadComponentTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoadComponent() 0 9 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Unit\Entities\Component;
4
5
use Maestriam\Samurai\Entities\Component;
6
use Maestriam\Samurai\Tests\TestCase;
7
8
class LoadComponentTest extends TestCase
9
{
10
    public function testLoadComponent()
11
    {
12
        $theme = $this->theme('bands/king-cobra')->findOrCreate();
13
14
        $component = $theme->component('musics/never-say-die')->create();
15
16
        $ret = $component->load();
17
18
        $this->assertInstanceOf(Component::class, $ret);
19
    }
20
}