PublishThemeCommandTest   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 testPublishValidTheme() 0 9 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Feature\Console;
4
5
use Maestriam\Samurai\Exceptions\InvalidThemeNameException;
6
use Maestriam\Samurai\Tests\TestCase;
7
8
class PublishThemeCommandTest extends TestCase
9
{    
10
    public function testPublishValidTheme()
11
    {
12
        $theme = 'bands/sodom';
13
14
        $this->theme($theme)->findOrCreate();
15
16
        $cmd = sprintf("samurai:publish %s", $theme);
17
18
        $this->artisan($cmd)->assertExitCode(0);
19
    }
20
}