Skip to content

Commit

Permalink
Fix test using orWhere().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 1, 2017
1 parent bf25c4c commit 2ee37ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/TestCase/ORM/TableTest.php
Expand Up @@ -555,7 +555,14 @@ public function testFindAllConditionAutoTypes()
];
$this->assertSame($expected, $query->toArray());

$query->orWhere(['users.created' => new Time('2008-03-17 01:18:23')]);
$query= $table->find()
->enableHydration(false)
->select(['id', 'username'])
->where(['OR' => [
'created >=' => new Time('2010-01-22 00:00'),
'users.created' => new Time('2008-03-17 01:18:23')
]])
->order('id');
$expected = [
['id' => 2, 'username' => 'nate'],
['id' => 3, 'username' => 'larry'],
Expand Down

0 comments on commit 2ee37ef

Please sign in to comment.