From 644d47c843d45d5fb3b1874c226aeae2ee0c9bd8 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 10 Nov 2012 14:24:30 -0500 Subject: [PATCH] Fix ordering on another query that was failing on travis-ci. --- .../Test/Case/Model/Behavior/ContainableBehaviorTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php index e43f49bfa..d84f07e67 100644 --- a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php @@ -2993,7 +2993,8 @@ class ContainableBehaviorTest extends CakeTestCase { 'User' => array( 'fields' => array('user') ) - ) + ), + 'order' => 'Article.id ASC', )); $this->assertTrue(isset($result[0]['Article']['title']), 'title missing %s'); $this->assertTrue(isset($result[0]['Article']['body']), 'body missing %s'); @@ -3016,7 +3017,10 @@ class ContainableBehaviorTest extends CakeTestCase { 'conditions' => array('created >=' => '2007-03-18 12:24') ) )); - $result = $this->Article->find('all', array('fields' => array('title'), 'order' => array('Article.id' => 'ASC'))); + $result = $this->Article->find('all', array( + 'fields' => array('title'), + 'order' => array('Article.id' => 'ASC') + )); $expected = array( array( 'Article' => array('id' => 1, 'title' => 'First Article'),