Skip to content
Browse files

Remove off by a second errors.

  • Loading branch information...
1 parent eb3e509 commit 9ef9b8b6623dcaf7fc658a367bbf658b90157aef @markstory markstory committed Nov 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
View
4 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
@@ -2000,8 +2000,8 @@ public function testStringConditionsParsing() {
$expected = " WHERE SUM(`Post`.`comments_count`) > 500";
$this->assertEquals($expected, $result);
- $result = $this->Dbo->conditions("(Post.created < '" . date('Y-m-d H:i:s') . "') GROUP BY YEAR(Post.created), MONTH(Post.created)");
- $expected = " WHERE (`Post`.`created` < '" . date('Y-m-d H:i:s') . "') GROUP BY YEAR(`Post`.`created`), MONTH(`Post`.`created`)";
+ $result = $this->Dbo->conditions("(Post.created < '" . date('Y-m-d H:i') . "') GROUP BY YEAR(Post.created), MONTH(Post.created)");
+ $expected = " WHERE (`Post`.`created` < '" . date('Y-m-d H:i') . "') GROUP BY YEAR(`Post`.`created`), MONTH(`Post`.`created`)";
$this->assertEquals($expected, $result);
$result = $this->Dbo->conditions("score BETWEEN 90.1 AND 95.7");

0 comments on commit 9ef9b8b

Please sign in to comment.
Something went wrong with that request. Please try again.