Skip to content

Commit

Permalink
Adding order on created to the find, avoid failing test by incorrect …
Browse files Browse the repository at this point in the history
…order in postgres
  • Loading branch information
ceeram committed Feb 10, 2012
1 parent 2897c72 commit 1f0af2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -3409,7 +3409,8 @@ public function testSaveAllTransaction() {

$result = $TestModel->find('all', array(
'recursive' => -1,
'fields' => array('author_id', 'title','body','published')
'fields' => array('author_id', 'title','body','published'),
'order' => array('Post.created' => 'ASC')
));

$expected = array(
Expand Down

0 comments on commit 1f0af2a

Please sign in to comment.