mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating DboSource test to account for formatting of floats done in mysql/postgresql.
This commit is contained in:
parent
95168cee6e
commit
123873b4d8
1 changed files with 2 additions and 2 deletions
|
@ -2548,11 +2548,11 @@ class DboSourceTest extends CakeTestCase {
|
|||
$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());
|
||||
|
|
Loading…
Reference in a new issue