/**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     if (env('APP_ENV') !== 'spira-core-testing') {
         return true;
     }
     Schema::drop(SecondTestEntity::getTableName());
 }
Exemple #2
0
 public function setUp()
 {
     parent::setUp();
     TestEntity::flushEventListeners();
     TestEntity::boot();
     // Workaround for model event firing.
     // The package Bosnadev\Database used for automatic UUID creation relies
     // on model events (creating) to generate the UUID.
     //
     // Laravel/Lumen currently doesn't fire repeated model events during
     // unit testing, see: https://github.com/laravel/framework/issues/1181
     SecondTestEntity::flushEventListeners();
     SecondTestEntity::boot();
     $this->app->group([], function ($app) {
         require __DIR__ . '/test_routes.php';
     });
 }