| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class TestCase extends Orchestra |
||
| 9 | { |
||
| 10 | public function setUp(): void |
||
| 11 | { |
||
| 12 | parent::setUp(); |
||
| 13 | |||
| 14 | $this->loadLaravelMigrations(['--database' => 'testbench']); |
||
| 15 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
||
| 16 | $this->loadMigrationsFrom(__DIR__.'/database/migrations'); |
||
| 17 | $this->withFactories(__DIR__.'/database/factories'); |
||
| 18 | |||
| 19 | $this->artisan('migrate', ['--database' => 'testbench'])->run(); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Define package providers. |
||
| 24 | * |
||
| 25 | * @param \Illuminate\Foundation\Application $app |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | protected function getPackageProviders($app) |
||
|
|
|||
| 29 | { |
||
| 30 | return [ |
||
| 31 | RatingServiceProvider::class, |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Define environment setup. |
||
| 37 | * |
||
| 38 | * @param \Illuminate\Foundation\Application $app |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | protected function getEnvironmentSetUp($app) |
||
| 49 | ]); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.