Flugg\Responder\Tests\TestCase::runTestMigrations PHP Méthode

runTestMigrations() protected méthode

Run migrations for tables only used for testing purposes.
protected runTestMigrations ( ) : void
Résultat 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();
            });
        }
    }