PublishThemeCommandTest::testPublishValidTheme()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
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
}