TestCase::getEnvironmentSetUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2019 - present
4
 * laravel-updown - TestCase.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 15/2/2019
8
 * MIT license: https://github.com/biscolab/laravel-updown/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\LaravelUpDown\Tests;
12
13
use Biscolab\LaravelUpDown\Facades\UpDown;
14
use Biscolab\LaravelUpDown\UpDownServiceProvider;
15
use Orchestra\Testbench\TestCase as OrchestraTestCase;
16
17
/**
18
 * Class TestCase
19
 * @package Biscolab\LaravelUpDown\Tests
20
 */
21
class TestCase extends OrchestraTestCase
22
{
23
24
    /**
25
     * Load package alias
26
     *
27
     * @param  \Illuminate\Foundation\Application $app
28
     *
29
     * @return array
30
     */
31
    protected function getPackageAliases($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

31
    protected function getPackageAliases(/** @scrutinizer ignore-unused */ $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
34
        return [
35
            'UpDown' => UpDown::class,
36
        ];
37
    }
38
39
    /**
40
     * Load package service provider
41
     *
42
     * @param \Illuminate\Foundation\Application $app
43
     *
44
     * @return array
45
     */
46
    protected function getPackageProviders($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

46
    protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
47
    {
48
49
        return [UpDownServiceProvider::class];
50
    }
51
52
    /**
53
     * Define environment setup.
54
     *
55
     * @param  \Illuminate\Foundation\Application  $app
56
     * @return void
57
     */
58
    protected function getEnvironmentSetUp($app)
59
    {
60
        $app['config']->set('updown.api_key', env('API_KEY', 'API_KEY'));
61
    }
62
}
63