1 | <?php |
||
2 | namespace Tests; |
||
3 | |||
4 | use Triadev\Es\Mapping\Provider\ServiceProvider; |
||
5 | use Triadev\Es\Provider\ElasticsearchServiceProvider; |
||
6 | |||
7 | class TestCase extends \Orchestra\Testbench\TestCase |
||
8 | { |
||
9 | /** |
||
10 | * Setup the test environment. |
||
11 | */ |
||
12 | public function setUp() |
||
13 | { |
||
14 | parent::setUp(); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @inheritDoc |
||
19 | * |
||
20 | * (Increase visibility to public) |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | public function tearDown() |
||
25 | { |
||
26 | parent::tearDown(); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Get package providers. At a minimum this is the package being tested, but also |
||
31 | * would include packages upon which our package depends, e.g. Cartalyst/Sentry |
||
32 | * In a normal app environment these would be added to the 'providers' array in |
||
33 | * the config/app.php file. |
||
34 | * |
||
35 | * @param \Illuminate\Foundation\Application $app |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | protected function getPackageProviders($app) |
||
0 ignored issues
–
show
|
|||
40 | { |
||
41 | return [ |
||
42 | ServiceProvider::class, |
||
43 | ElasticsearchServiceProvider::class |
||
44 | ]; |
||
45 | } |
||
46 | } |
||
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.