Passed
Pull Request — master (#6)
by Arina
03:18
created

TestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 3
1
<?php
2
3
namespace ArinaSystems\JsonResponse\Tests;
4
5
use ArinaSystems\JsonResponse\Providers\JsonResponseServiceProvider;
6
use Orchestra\Testbench\TestCase as Orchestra;
7
8
/**
9
 * Class TestCase.
10
 */
11
abstract class TestCase extends Orchestra
12
{
13
    /**
14
     * Setup the test environment.
15
     *
16
     * @return void
17
     */
18
    public function setUp(): void
19
    {
20
        parent::setUp();
21
    }
22
23
    /**
24
     * Get JsonResponse package providers.
25
     *
26
     * @return array
27
     */
28
    protected function getPackageProviders($app)
29
    {
30
        return [
31
            JsonResponseServiceProvider::class,
32
        ];
33
    }
34
35
    /**
36
     * @param  $app
37
     * @return array
38
     */
39
    protected function getPackageAliases($app)
40
    {
41
        return [
42
            'JsonResponse' => 'ArinaSystems\JsonResponse\Facades\JsonResponse',
43
        ];
44
    }
45
}
46