diff --git a/tests/TestCase/Database/Schema/MysqlSchemaTest.php b/tests/TestCase/Database/Schema/MysqlSchemaTest.php index 8602f4ec1d9..ec184bfd21e 100644 --- a/tests/TestCase/Database/Schema/MysqlSchemaTest.php +++ b/tests/TestCase/Database/Schema/MysqlSchemaTest.php @@ -723,7 +723,7 @@ public function testCreateSql() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); } /** @@ -779,7 +779,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); $table = (new Table('composite_key')) ->addColumn('id', [ @@ -805,7 +805,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); } /** diff --git a/tests/TestCase/Database/Schema/PostgresSchemaTest.php b/tests/TestCase/Database/Schema/PostgresSchemaTest.php index e44f554f5a3..1070b4b40e3 100644 --- a/tests/TestCase/Database/Schema/PostgresSchemaTest.php +++ b/tests/TestCase/Database/Schema/PostgresSchemaTest.php @@ -646,7 +646,7 @@ public function testConstraintSql($name, $data, $expected) { 'type' => 'integer', ])->addConstraint($name, $data); - $this->assertEquals($expected, $schema->constraintSql($table, $name)); + $this->assertTextEquals($expected, $schema->constraintSql($table, $name)); } /** @@ -692,7 +692,7 @@ public function testCreateSql() { $result = $table->createSql($connection); $this->assertCount(3, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); $this->assertEquals( 'CREATE INDEX "title_idx" ON "schema_articles" ("title")', $result[1] @@ -756,7 +756,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); $table = (new Table('composite_key')) ->addColumn('id', [ @@ -782,7 +782,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); } /** diff --git a/tests/TestCase/Database/Schema/SqliteSchemaTest.php b/tests/TestCase/Database/Schema/SqliteSchemaTest.php index ceb137e1f4e..e05e36f1759 100644 --- a/tests/TestCase/Database/Schema/SqliteSchemaTest.php +++ b/tests/TestCase/Database/Schema/SqliteSchemaTest.php @@ -772,7 +772,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); // Sqlite only supports AUTO_INCREMENT on single column primary // keys. Ensure that schema data follows the limitations of Sqlite. @@ -800,7 +800,7 @@ public function testCreateSqlCompositeIntegerKey() { SQL; $result = $table->createSql($connection); $this->assertCount(1, $result); - $this->assertEquals($expected, $result[0]); + $this->assertTextEquals($expected, $result[0]); } /**