Completed
Push — master ( cd7ceb...6f2a09 )
by Avtandil
02:36
created

TestCase::overrideApplicationAliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Tests\Unit;
5
6
use Longman\LaravelLodash\LodashServiceProvider;
7
use Orchestra\Testbench\TestCase as BaseTestCase;
8
9
class TestCase extends BaseTestCase
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
10
{
11
    protected function getPackageProviders($app)
12
    {
13
        return [LodashServiceProvider::class];
14
    }
15
16
    protected function getApplicationAliases($app)
17
    {
18
        $aliases = $app['config']['app.aliases'];
19
20
        // Remove Redis facade
21
        unset($aliases['Redis']);
22
23
        return $aliases;
24
    }
25
}
26