Permalink
Browse files

Fix another test that sometimes fails on travis.

  • Loading branch information...
1 parent ba8f278 commit 9007406b9d9fc035fb52cdf5da20911ab09759b2 @markstory markstory committed Nov 3, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -5123,7 +5123,10 @@ public function testCallbackDisabling() {
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 @@ public function testAssociationAfterFindCalbacksDisabled() {
$result = $Author->find('all', array(
'conditions' => array('Author.id' => 1),
'recursive' => 2,
+ 'order' => array('Post.id' => 'ASC'),
'callbacks' => false
));
$expected = array(

0 comments on commit 9007406

Please sign in to comment.