Skip to content

Commit

Permalink
Fix another test that sometimes fails on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2012
1 parent ba8f278 commit 9007406
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9007406

Please sign in to comment.