Skip to content

Commit 024466f

Browse files
committed
test with an array
1 parent 8d65bc3 commit 024466f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/Integration/Migration/MigratorTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,22 @@ public function testMigrateWithoutOutput()
6666
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));
6767
}
6868

69-
#[TestWith(['2015_10_04_000000_modify_people_table.php'], 'filename with extension')]
70-
#[TestWith(['2015_10_04_000000_modify_people_table'], 'filename without extension')]
71-
public function testWithSkippedMigrations(string $filename)
69+
public function testWithSkippedMigrations()
7270
{
7371
$this->app->forgetInstance('migrator');
7472
$this->subject = $this->app->make('migrator');
7573

76-
Migrator::withoutMigrations([$filename]);
74+
Migrator::withoutMigrations(['2015_10_04_000000_modify_people_table.php', '2016_10_04_000000_modify_people_table']);
7775

7876
$this->subject->run([__DIR__.'/fixtures']);
7977
$this->assertTrue(DB::getSchemaBuilder()->hasTable('people'));
8078
$this->assertFalse(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
81-
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));
79+
$this->assertFalse(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));
8280

8381
Migrator::withoutMigrations([]);
8482
$this->subject->run([__DIR__.'/fixtures']);
8583
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'first_name'));
84+
$this->assertTrue(DB::getSchemaBuilder()->hasColumn('people', 'last_name'));
8685
}
8786

8887
public function testRollback()

0 commit comments

Comments
 (0)