diff --git a/tests/Feature/MySQL57/CommandTest.php b/tests/Feature/MySQL57/CommandTest.php index ccfed9a..61487bd 100644 --- a/tests/Feature/MySQL57/CommandTest.php +++ b/tests/Feature/MySQL57/CommandTest.php @@ -425,6 +425,30 @@ public function testSkipLog(): void ); } + public function testSkipLogWithSquash(): void + { + $this->migrateGeneral(); + $this->truncateMigrationsTable(); + $this->dumpSchemaAs($this->getStorageSqlPath('expected.sql')); + + $this->artisan( + 'migrate:generate', + [ + '--path' => $this->getStorageMigrationsPath(), + '--skip-log' => true, + '--squash' => true, + ], + ); + + $this->assertSame(0, DB::table('migrations')->count()); + $this->dumpSchemaAs($this->getStorageSqlPath('actual.sql')); + + $this->assertFileEqualsIgnoringOrder( + $this->getStorageSqlPath('expected.sql'), + $this->getStorageSqlPath('actual.sql'), + ); + } + public function testLogWithBatch0(): void { $this->migrateGeneral();