Skip to content

Commit

Permalink
Datetime tests in MySQL will return the time portion as well.
Browse files Browse the repository at this point in the history
Use a less sensitive assertion here.
  • Loading branch information
markstory committed Mar 16, 2014
1 parent 277acc1 commit dde6dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/Database/QueryTest.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit dde6dff

Please sign in to comment.