Issues (15)

tests/TestCase.php (1 issue)

Severity
1
<?php
2
3
namespace Pratiksh\Nepalidate\Tests;
4
5
use Orchestra\Testbench\TestCase as BaseTestCase;
6
use Pratiksh\Nepalidate\Providers\NepalidateServiceProvider;
7
8
abstract class TestCase extends BaseTestCase
9
{
10
    /**
11
     * Set up the test case.
12
     */
13
    protected function setUp(): void
14
    {
15
        parent::setUp();
16
        // Add your setup code here
17
    }
18
19
    /**
20
     * Clean up after the test case.
21
     */
22
    protected function tearDown(): void
23
    {
24
        // Add your teardown code here
25
        parent::tearDown();
26
    }
27
28
    /**
29
     * Define environment setup.
30
     *
31
     * @param  \Illuminate\Foundation\Application  $app
32
     * @return void
33
     */
34
    protected function getEnvironmentSetUp($app)
35
    {
36
        // Setup default database to use sqlite :memory:
37
        $app['config']->set('database.default', 'testbench');
38
        $app['config']->set('database.connections.testbench', [
39
            'driver' => 'sqlite',
40
            'database' => ':memory:',
41
            'prefix' => '',
42
        ]);
43
    }
44
45
    /**
46
     * Get package providers.
47
     *
48
     * @param  \Illuminate\Foundation\Application  $app
49
     * @return array
50
     */
51
    protected function getPackageProviders($app)
0 ignored issues
show
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

51
    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...
52
    {
53
        return [
54
            NepalidateServiceProvider::class,
55
        ];
56
    }
57
}
58