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 f8f4184
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Integration/Migration/MigratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ 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 f8f4184

Please sign in to comment.