Browse Source

fix failing test, caused by postgres ordering

Ceeram 14 years ago
parent
commit
97f48dcdb3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Cake/Test/Case/Model/ModelWriteTest.php

+ 2 - 1
lib/Cake/Test/Case/Model/ModelWriteTest.php

@@ -4741,7 +4741,8 @@ class ModelWriteTest extends BaseModelTest {
 
 		$result = $TestModel->find('all', array(
 			'recursive' => -1,
-			'fields' => array('author_id', 'title','body','published')
+			'fields' => array('author_id', 'title','body','published'),
+			'order' => array('Post.created' => 'ASC')
 		));
 
 		$expected = array(