mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix ordering on another query that was failing on travis-ci.
This commit is contained in:
parent
7360abb0fe
commit
644d47c843
1 changed files with 6 additions and 2 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Reference in a new issue