From 797b7e0a3c50e9586bb5f367f77588ce12de8c19 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sun, 19 Feb 2023 12:06:16 +0900 Subject: [PATCH] test: MysqlTest::testTinyintCasting() Use assertEquals for assertions as in other record-retrieval tests. --- lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php index 7d6731c6d..ed44627da 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php @@ -214,19 +214,19 @@ class MysqlTest extends CakeTestCase { $this->assertTrue((bool)$this->model->save(array('bool' => 5, 'tiny_int' => 5))); $result = $this->model->find('first'); $this->assertTrue($result['Tinyint']['bool']); - $this->assertSame($result['Tinyint']['tiny_int'], '5'); + $this->assertEquals($result['Tinyint']['tiny_int'], '5'); $this->model->deleteAll(true); $this->assertTrue((bool)$this->model->save(array('bool' => 0, 'tiny_int' => 100))); $result = $this->model->find('first'); $this->assertFalse($result['Tinyint']['bool']); - $this->assertSame($result['Tinyint']['tiny_int'], '100'); + $this->assertEquals($result['Tinyint']['tiny_int'], '100'); $this->model->deleteAll(true); $this->assertTrue((bool)$this->model->save(array('bool' => true, 'tiny_int' => 0))); $result = $this->model->find('first'); $this->assertTrue($result['Tinyint']['bool']); - $this->assertSame($result['Tinyint']['tiny_int'], '0'); + $this->assertEquals($result['Tinyint']['tiny_int'], '0'); $this->model->deleteAll(true); $this->Dbo->rawQuery('DROP TABLE ' . $this->Dbo->fullTableName($tableName));