Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix another test that sometimes fails on travis.

  • Loading branch information...
commit 9007406b9d9fc035fb52cdf5da20911ab09759b2 1 parent ba8f278
@markstory markstory authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Test/Case/Model/ModelReadTest.php
View
6 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(
Please sign in to comment.
Something went wrong with that request. Please try again.