Browse Source

Fix another test that sometimes fails on travis.

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

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

@@ -5123,7 +5123,10 @@ class ModelReadTest extends BaseModelTest {
 	public function testAssociationAfterFindCalbacksDisabled() {
 		$this->loadFixtures('Post', 'Author', 'Comment');
 		$TestModel = new Post();
-		$result = $TestModel->find('all', array('callbacks' => false));
+		$result = $TestModel->find('all', array(
+			'callbacks' => false,
+			'order' => array('Post.id' => 'ASC'),
+		));
 		$expected = array(
 			array(
 				'Post' => array(
@@ -5190,6 +5193,7 @@ class ModelReadTest extends BaseModelTest {
 		$result = $Author->find('all', array(
 			'conditions' => array('Author.id' => 1),
 			'recursive' => 2,
+			'order' => array('Post.id' => 'ASC'),
 			'callbacks' => false
 		));
 		$expected = array(