Passed
Push — master ( 84641f...5a8f0a )
by Caen
03:37
created

StaticSiteBuilderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_can_build_static_site() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Testing\Hyde\Feature;
6
7
use Hyde\Hyde;
8
use Hyde\Testing\TestCase;
9
use Illuminate\Support\Facades\File;
10
11
class StaticSiteBuilderTest extends TestCase
12
{
13
    public function test_can_build_static_site()
14
    {
15
        File::cleanDirectory(Hyde::path('_site'));
16
17
        $this->artisan('build')
18
            ->expectsOutputToContain('Building your static site!')
19
            ->assertExitCode(0);
20
21
        File::cleanDirectory(Hyde::path('_site'));
22
    }
23
}
24