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