Browse Source

Fix another test that fails on postgres sometimes.

mark_story 13 years ago
parent
commit
d9a3ab844f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Cake/Test/Case/Model/ModelReadTest.php

+ 3 - 1
lib/Cake/Test/Case/Model/ModelReadTest.php

@@ -7759,7 +7759,9 @@ class ModelReadTest extends BaseModelTest {
 		$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);