Skip to content

Commit 8d65bc3

Browse files
committed
test unsetting skipped migrations
1 parent 26928ef commit 8d65bc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Integration/Migration/MigratorTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public function testWithSkippedMigrations(string $filename)
7979
$this->assertTrue(DB::getSchemaBuilder()->hasTable('people'));
8080
$this->assertFalse(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
8181
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));
82+
83+
Migrator::withoutMigrations([]);
84+
$this->subject->run([__DIR__.'/fixtures']);
85+
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
8286
}
8387

8488
public function testRollback()

0 commit comments

Comments
 (0)