Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix another test that fails on postgres sometimes.

  • Loading branch information...
commit d9a3ab844f3c563bde72fd28fb990a220b67f3e6 1 parent 94bd2ce
Mark Story markstory authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Test/Case/Model/ModelReadTest.php
4 lib/Cake/Test/Case/Model/ModelReadTest.php
View
@@ -7759,7 +7759,9 @@ public function testVirtualFieldsOrder() {
$this->assertEquals($expected, $result);
$Post->Author->virtualFields = array('joined' => 'Post.id * Author.id');
- $result = $Post->find('all');
+ $result = $Post->find('all', array(
+ 'order' => array('Post.id' => 'ASC')
+ ));
$result = Hash::extract($result, '{n}.Author.joined');
$expected = array(1, 6, 3);
$this->assertEquals($expected, $result);
Please sign in to comment.
Something went wrong with that request. Please try again.