@@ -66,23 +66,22 @@ public function testMigrateWithoutOutput()
66
66
$ this ->assertTrue (DB ::getSchemaBuilder ()->hasColumn ('people ' , 'last_name ' ));
67
67
}
68
68
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 ()
72
70
{
73
71
$ this ->app ->forgetInstance ('migrator ' );
74
72
$ this ->subject = $ this ->app ->make ('migrator ' );
75
73
76
- Migrator::withoutMigrations ([$ filename ]);
74
+ Migrator::withoutMigrations ([' 2015_10_04_000000_modify_people_table.php ' , ' 2016_10_04_000000_modify_people_table ' ]);
77
75
78
76
$ this ->subject ->run ([__DIR__ .'/fixtures ' ]);
79
77
$ this ->assertTrue (DB ::getSchemaBuilder ()->hasTable ('people ' ));
80
78
$ 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 ' ));
82
80
83
81
Migrator::withoutMigrations ([]);
84
82
$ this ->subject ->run ([__DIR__ .'/fixtures ' ]);
85
83
$ this ->assertTrue (DB ::getSchemaBuilder ()->hasColumn ('people ' , 'first_name ' ));
84
+ $ this ->assertTrue (DB ::getSchemaBuilder ()->hasColumn ('people ' , 'last_name ' ));
86
85
}
87
86
88
87
public function testRollback ()
0 commit comments