Browse files

Fix ordering on another query that was failing on travis-ci.

  • Loading branch information...
1 parent 7360abb commit 644d47c843d45d5fb3b1874c226aeae2ee0c9bd8 @markstory markstory committed Nov 10, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
View
8 lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
@@ -2993,7 +2993,8 @@ public function testHasOneFieldsInContain() {
'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 @@ public function testFindConditionalBinding() {
'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'),

0 comments on commit 644d47c

Please sign in to comment.