예제 #1
0
 /**
  * Migrate the jobs database for testing.
  */
 public function migrateJobsDatabase()
 {
     $this->migrationsRepository = $this->app->make('migration.repository');
     $this->migrationsRepository->createRepository();
     $migrator = new StructuredMigrator($this->migrationsRepository, $this->app->make('db'), new JobsMigrationBatch());
     $migrator->run();
 }
예제 #2
0
 public function testDown()
 {
     $this->migrateJobsDatabase();
     $migrator = new StructuredMigrator($this->migrationsRepository, $this->app->make('db'), new JobsMigrationBatch());
     $migrator->rollback();
 }