Passed
Pull Request — master (#57)
by Kyle
12:41
created

BaseTestCase::getEnvironmentSetUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 1
dl 0
loc 12
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace KyleMassacre\Menus\Tests;
4
5
use KyleMassacre\Menus\MenusServiceProvider;
6
use Orchestra\Testbench\TestCase as OrchestraTestCase;
7
use Spatie\Html\HtmlServiceProvider;
8
9
abstract class BaseTestCase extends OrchestraTestCase
10
{
11
    public function setUp() : void
12
    {
13
        parent::setUp();
14
    }
15
16
    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

16
    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...
17
    {
18
        return [
19
            HtmlServiceProvider::class,
20
            MenusServiceProvider::class,
21
        ];
22
    }
23
24
    protected function getEnvironmentSetUp($app)
25
    {
26
        $app['config']->set('menus', [
27
            'styles' => [
28
                'navbar' => \KyleMassacre\Menus\Presenters\Bootstrap\NavbarPresenter::class,
29
                'navbar-right' => \KyleMassacre\Menus\Presenters\Bootstrap\NavbarRightPresenter::class,
30
                'nav-pills' => \KyleMassacre\Menus\Presenters\Bootstrap\NavPillsPresenter::class,
31
                'nav-tab' => \KyleMassacre\Menus\Presenters\Bootstrap\NavTabPresenter::class,
32
                'sidebar' => \KyleMassacre\Menus\Presenters\Bootstrap\SidebarMenuPresenter::class,
33
                'navmenu' => \KyleMassacre\Menus\Presenters\Bootstrap\NavMenuPresenter::class,
34
            ],
35
            'ordering' => false,
36
        ]);
37
    }
38
}
39