File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,13 @@ public function testStatusCommand()
2121 $ this ->artisan ('migrate:actions:status ' )->expectsTable ([], [])->run ();
2222 }
2323
24- $ filename = date ('Y_m_d_His ' ) . '_status ' ;
25-
2624 $ this ->artisan ('make:migration:action ' , ['name ' => 'Status ' ])->run ();
2725 $ this ->artisan ('migrate:actions ' )->run ();
2826
2927 $ this ->assertDatabaseCount ($ this ->table , 1 );
3028
3129 $ this ->artisan ('migrate:actions:status ' )->run ();
3230
33- $ this ->assertDatabaseHas ($ this ->table , [
34- 'migration ' => $ filename ,
35- 'batch ' => 1 ,
36- ]);
31+ $ this ->assertDatabaseHasLike ($ this ->table , 'migration ' , 'status ' );
3732 }
3833}
Original file line number Diff line number Diff line change @@ -12,16 +12,6 @@ protected function is6x(): bool
1212 return $ this ->majorVersion () === 6 ;
1313 }
1414
15- protected function is7x (): bool
16- {
17- return $ this ->majorVersion () === 7 ;
18- }
19-
20- protected function is8x (): bool
21- {
22- return $ this ->majorVersion () === 8 ;
23- }
24-
2515 protected function majorVersion (): int
2616 {
2717 return Str::before (Application::VERSION , '. ' );
You can’t perform that action at this time.
0 commit comments