Permalink
Browse files

Updating DboSource test to account for formatting of floats done in m…

…ysql/postgresql.
  • Loading branch information...
1 parent 95168ce commit 123873b4d817aacc9b7e7764fa04c73122ef486e @markstory markstory committed Aug 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/model/datasources/dbo_source.test.php
@@ -2548,11 +2548,11 @@ function testArrayConditionsParsing() {
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('score BETWEEN ? AND ?' => array(90.1, 95.7)));
- $expected = " WHERE `score` BETWEEN 90.1 AND 95.7";
+ $expected = " WHERE `score` BETWEEN 90.100000 AND 95.700000";
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('Post.title' => 1.1));
- $expected = " WHERE `Post`.`title` = 1.1";
+ $expected = " WHERE `Post`.`title` = 1.100000";
$this->assertEqual($result, $expected);
$result = $this->testDb->conditions(array('Post.title' => 1.1), true, true, new Post());

0 comments on commit 123873b

Please sign in to comment.