From 63adc08313cabd197ae45cb80c2ade9c290d05e0 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Mon, 31 Aug 2020 21:08:16 +0100 Subject: [PATCH] #94 - Fix case of AUTO_INCREMENT option --- tests/mysql/MigrationsCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mysql/MigrationsCest.php b/tests/mysql/MigrationsCest.php index ed6317f..0d287e4 100644 --- a/tests/mysql/MigrationsCest.php +++ b/tests/mysql/MigrationsCest.php @@ -274,7 +274,7 @@ public function generateWithAutoIncrement(MysqlTester $I): void $I->assertEquals(4, $autoIncrement); $I->assertContains( - "'auto_increment' => '4'", + "'AUTO_INCREMENT' => '4'", file_get_contents($migrationsDir . '/1.0.0/' . $tableName . '.php') ); } @@ -323,7 +323,7 @@ public function generateWithoutAutoIncrement(MysqlTester $I): void $I->assertEquals(4, $autoIncrement); $I->assertContains( - "'auto_increment' => ''", + "'AUTO_INCREMENT' => ''", file_get_contents($migrationsDir . '/1.0.0/' . $tableName . '.php') ); }