From d3d009588d56512313362b086098fb754f15f2d0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 3 Jan 2011 23:06:48 -0500 Subject: [PATCH] Fixing failing tests because of incorrect types. --- .../cases/libs/model/datasources/dbo/dbo_mysql.test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php index 1e4c0ed93..5ddce2069 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php @@ -178,19 +178,19 @@ class DboMysqlTest extends CakeTestCase { $this->assertTrue((bool)$this->model->save(array('bool' => 5, 'small_int' => 5))); $result = $this->model->find('first'); - $this->assertIdentical($result['Tinyint']['bool'], '1'); + $this->assertIdentical($result['Tinyint']['bool'], true); $this->assertIdentical($result['Tinyint']['small_int'], '5'); $this->model->deleteAll(true); $this->assertTrue((bool)$this->model->save(array('bool' => 0, 'small_int' => 100))); $result = $this->model->find('first'); - $this->assertIdentical($result['Tinyint']['bool'], '0'); + $this->assertIdentical($result['Tinyint']['bool'], false); $this->assertIdentical($result['Tinyint']['small_int'], '100'); $this->model->deleteAll(true); $this->assertTrue((bool)$this->model->save(array('bool' => true, 'small_int' => 0))); $result = $this->model->find('first'); - $this->assertIdentical($result['Tinyint']['bool'], '1'); + $this->assertIdentical($result['Tinyint']['bool'], true); $this->assertIdentical($result['Tinyint']['small_int'], '0'); $this->model->deleteAll(true);