File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
tests/Integration/Console/Commands Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,19 @@ public function testCommandGeneratesMigrationFiles(): void
3232 self ::assertNotEmpty ($ files , 'No Migrations generated ' );
3333 }
3434
35+ public function testCommandGeneratesNormalizedMigrationFiles (): void
36+ {
37+ config ()->set ('migration-generator.normalizer.enabled ' , []);
38+ config ()->set ('migration-generator.defaults.normalizer ' , []);
39+ $ this ->artisan ('migrate:regenerate ' , [
40+ '--database ' => $ this ->getDatabaseFromEnv (),
41+ '--normalizer ' => 'pivot '
42+ ])
43+ ->assertExitCode (0 );
44+ $ files = File::files ($ this ->migrationPath );
45+ self ::assertNotEmpty ($ files , 'No Migrations generated ' );
46+ }
47+
3548 protected function tearDown (): void
3649 {
3750 parent ::tearDown ();
You can’t perform that action at this time.
0 commit comments