Skip to content

Commit

Permalink
Revert redundant updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin V / vvval committed Oct 12, 2020
1 parent 27f9f98 commit 4d0faec
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tests/Migrations/MigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ public function testConfig(): void
public function testRunUnconfigured(): void
{
$this->expectException(MigrationException::class);
$this->expectExceptionMessage('Unable to run migration, Migrator not configured');
$this->expectExceptionMessage("Unable to run migration, Migrator not configured");

$this->migrator->run();
}

public function testRollbackUnconfigured(): void
{
$this->expectException(MigrationException::class);
$this->expectExceptionMessage('Unable to run migration, Migrator not configured');
$this->expectExceptionMessage("Unable to run migration, Migrator not configured");

$this->migrator->rollback();
}
Expand All @@ -134,17 +134,15 @@ public function testCapsuleException(): void
$this->expectException(\Spiral\Migrations\Exception\CapsuleException::class);
$capsule = new Capsule($this->db);

$capsule->execute(
[
$this
]
);
$capsule->execute([
$this
]);
}

public function testNoState(): void
{
$this->expectException(MigrationException::class);
$this->expectExceptionMessage('Unable to get migration state, no state are set');
$this->expectExceptionMessage("Unable to get migration state, no state are set");

$x = new TestMigration();
$x->up();
Expand All @@ -153,7 +151,7 @@ public function testNoState(): void
public function testNoCapsule(): void
{
$this->expectException(MigrationException::class);
$this->expectExceptionMessage('Unable to get table blueprint, no capsule are set');
$this->expectExceptionMessage("Unable to get table blueprint, no capsule are set");

$x = new TestMigration();
$x->getTable();
Expand All @@ -162,7 +160,7 @@ public function testNoCapsule(): void
public function testNoCapsule2(): void
{
$this->expectException(MigrationException::class);
$this->expectExceptionMessage('Unable to get database, no capsule are set');
$this->expectExceptionMessage("Unable to get database, no capsule are set");

$x = new TestMigration();
$x->down();
Expand Down

0 comments on commit 4d0faec

Please sign in to comment.