Skip to content

Commit

Permalink
test unsetting skipped migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Feb 2, 2025
1 parent 26928ef commit 8d65bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Integration/Migration/MigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public function testWithSkippedMigrations(string $filename)
$this->assertTrue(DB::getSchemaBuilder()->hasTable('people'));
$this->assertFalse(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));

Migrator::withoutMigrations([]);
$this->subject->run([__DIR__.'/fixtures']);
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
}

public function testRollback()
Expand Down

0 comments on commit 8d65bc3

Please sign in to comment.