CreateThemeTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateTheme() 0 7 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Feature\Facade;
4
5
use Maestriam\Samurai\Support\Samurai;
6
use Maestriam\Samurai\Tests\TestCase;
7
8
class CreateThemeTest extends TestCase
9
{
10
    public function testCreateTheme()
11
    {
12
        $name = 'bands/winger';
13
14
        $theme = Samurai::theme($name)->make();
0 ignored issues
show
Bug introduced by
The method theme() does not exist on Maestriam\Samurai\Support\Samurai. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
        $theme = Samurai::/** @scrutinizer ignore-call */ theme($name)->make();
Loading history...
15
16
        $this->assertValidTheme($theme);
17
    }
18
}