| Total Complexity | 4 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class FunctionalTestCase extends TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Set up the test environment. |
||
| 12 | */ |
||
| 13 | public function setUp() |
||
| 20 | ]); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Define environment setup. |
||
| 25 | * |
||
| 26 | * @param \Illuminate\Foundation\Application $app |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | protected function getEnvironmentSetUp($app) |
||
| 31 | { |
||
| 32 | $app['config']->set('database.default', 'testbench'); |
||
| 33 | $app['config']->set('database.connections.testbench', [ |
||
| 34 | 'driver' => 'sqlite', |
||
| 35 | 'database' => ':memory:', |
||
| 36 | ]); |
||
| 37 | |||
| 38 | $app['config']->set('translation.locales', [ |
||
| 39 | 'en' => 'English', |
||
| 40 | 'fr' => 'French', |
||
| 41 | ]); |
||
| 42 | |||
| 43 | $app['config']->set('translation.key', 123456); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Returns the package providers. |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | protected function getPackageProviders($app) |
||
|
|
|||
| 52 | { |
||
| 53 | return [TranslationServiceProvider::class]; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Returns the package aliases. |
||
| 58 | * |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | protected function getPackageAliases($app) |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.