/** @test */
 public function it_outputs_migration_notes()
 {
     $this->migrator->getNotes()->willReturn(['Migrated: CreateFlightsTable', 'Migrated: SomethingToTest']);
     $this->migrator->run(Argument::cetera())->shouldBeCalled();
     TestCommand::create($this->command)->execute()->outputs("Migrated: CreateFlightsTable\nMigrated: SomethingToTest");
 }
 /** @test */
 public function it_creates_a_blank_stub_when_no_option_was_provided()
 {
     $this->creator->create('AddDefaultFlights', __DIR__ . '/migrations', null, false)->shouldBeCalled();
     TestCommand::create($this->command)->passing('name', 'AddDefaultFlights')->duringExecute();
 }
 /** @test */
 public function it_allows_multiple_migration_directories()
 {
     $this->migrator->paths()->willReturn(['/somewhere/migrations']);
     $this->migrator->getMigrationFiles([__DIR__ . '/migrations', '/somewhere/migrations'])->shouldBeCalled()->willReturn([]);
     TestCommand::create($this->command)->execute();
 }
 /** @test */
 public function it_stops_when_repository_does_not_exists()
 {
     $this->migrator->repositoryExists()->willReturn(false);
     $this->migrator->reset(Argument::cetera())->shouldNotBeCalled();
     TestCommand::create($this->command)->execute()->outputs('Migration table not found.')->exitsWith(1);
 }