From dde6dffd9f5eddc15ce1fa7c196b43bd02b68fe0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 15 Mar 2014 21:40:33 -0400 Subject: [PATCH] Datetime tests in MySQL will return the time portion as well. Use a less sensitive assertion here. --- tests/TestCase/Database/QueryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase/Database/QueryTest.php b/tests/TestCase/Database/QueryTest.php index 9901810cbba..f70352c0864 100644 --- a/tests/TestCase/Database/QueryTest.php +++ b/tests/TestCase/Database/QueryTest.php @@ -1843,7 +1843,7 @@ public function testUpdateArrayFields() { $query = new Query($this->connection); $result = $query->select('created')->from('comments')->where(['id' => 1])->execute(); $result = $result->fetchAll('assoc')[0]['created']; - $this->assertEquals($date->format('Y-m-d'), $result); + $this->assertStringStartsWith($date->format('Y-m-d'), $result); } /**