Passed
Branch stable (1a8d6d)
by Nuno
05:14 queued 02:47
created

BuilderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
dl 0
loc 19
rs 10
c 2
b 1
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 4 1
A it_builds_the_application() 0 10 1
1
<?php
2
3
namespace Tests;
4
5
use Illuminate\Support\Facades\File;
6
7
class BuilderTest extends TestCase
8
{
9
    public function tearDown()
10
    {
11
        File::deleteDirectory(base_path('builds'));
12
    }
13
14
    /** @test */
15
    public function it_builds_the_application(): void
16
    {
17
        $this->app->call('app:build');
18
19
        $this->assertTrue(File::exists(base_path('builds'.DIRECTORY_SEPARATOR.'application')));
20
21
        $this->app->call('app:build', ['name' => 'zonda']);
22
23
        $this->assertTrue(File::exists(base_path('builds'.DIRECTORY_SEPARATOR.'zonda')));
24
    }
25
}
26