BaseTestCase::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Nwidart\Menus\Tests;
4
5
use Collective\Html\HtmlServiceProvider;
6
use Nwidart\Menus\MenusServiceProvider;
7
use Orchestra\Testbench\TestCase as OrchestraTestCase;
8
9
abstract class BaseTestCase extends OrchestraTestCase
10
{
11
    public function setUp() : void
12
    {
13
        parent::setUp();
14
15
        // $this->setUpDatabase();
16
    }
17
18
    protected function getPackageProviders($app)
19
    {
20
        return [
21
            HtmlServiceProvider::class,
22
            MenusServiceProvider::class,
23
        ];
24
    }
25
26
    /**
27
     * Set up the environment.
28
     *
29
     * @param \Illuminate\Foundation\Application $app
30
     */
31
    protected function getEnvironmentSetUp($app)
32
    {
33
        $app['config']->set('menus', [
34
            'styles' => [
35
                'navbar' => \Nwidart\Menus\Presenters\Bootstrap\NavbarPresenter::class,
36
                'navbar-right' => \Nwidart\Menus\Presenters\Bootstrap\NavbarRightPresenter::class,
37
                'nav-pills' => \Nwidart\Menus\Presenters\Bootstrap\NavPillsPresenter::class,
38
                'nav-tab' => \Nwidart\Menus\Presenters\Bootstrap\NavTabPresenter::class,
39
                'sidebar' => \Nwidart\Menus\Presenters\Bootstrap\SidebarMenuPresenter::class,
40
                'navmenu' => \Nwidart\Menus\Presenters\Bootstrap\NavMenuPresenter::class,
41
            ],
42
43
            'ordering' => false,
44
        ]);
45
    }
46
}
47