Flugg\Responder\Tests\TestCase::runTestMigrations PHP Method

runTestMigrations() protected method

Run migrations for tables only used for testing purposes.
protected runTestMigrations ( ) : void
return void
    protected function runTestMigrations()
    {
        if (!$this->schema->hasTable('fruits')) {
            $this->schema->create('fruits', function (Blueprint $table) {
                $table->increments('id');
                $table->string('name');
                $table->integer('price');
                $table->boolean('is_rotten');
                $table->timestamps();
            });
        }
    }