koenhoeijmakers /
laravel-translatable
| 1 | <?php |
||
| 2 | |||
| 3 | namespace KoenHoeijmakers\LaravelTranslatable\Tests; |
||
| 4 | |||
| 5 | use Illuminate\Database\Schema\Blueprint; |
||
| 6 | use Illuminate\Support\Facades\Schema; |
||
| 7 | use KoenHoeijmakers\LaravelTranslatable\TranslatableServiceProvider; |
||
| 8 | use Orchestra\Testbench\TestCase as Orchestra; |
||
| 9 | |||
| 10 | abstract class TestCase extends Orchestra |
||
| 11 | { |
||
| 12 | public function setUp(): void |
||
| 13 | { |
||
| 14 | parent::setUp(); |
||
| 15 | |||
| 16 | $this->setUpDatabase(); |
||
| 17 | } |
||
| 18 | |||
| 19 | protected function getPackageProviders($app) |
||
|
0 ignored issues
–
show
|
|||
| 20 | { |
||
| 21 | return [TranslatableServiceProvider::class]; |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function setUpDatabase() |
||
| 25 | { |
||
| 26 | Schema::create('test_models', function (Blueprint $table) { |
||
| 27 | $table->increments('id'); |
||
| 28 | $table->timestamps(); |
||
| 29 | }); |
||
| 30 | |||
| 31 | Schema::create('test_model_translations', function (Blueprint $table) { |
||
| 32 | $table->increments('id'); |
||
| 33 | $table->unsignedInteger('test_model_id'); |
||
| 34 | $table->string('locale'); |
||
| 35 | $table->string('name'); |
||
| 36 | $table->timestamps(); |
||
| 37 | |||
| 38 | $table->unique(['locale', 'test_model_id']); |
||
| 39 | $table->foreign('test_model_id')->references('id')->on('test_models'); |
||
| 40 | }); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.