Failed Conditions
Branch feature/refactoring-samurai (8cc7c1)
by Giuliano
03:47
created

LoadComponentTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
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
}