Adding order on created to the find, avoid failing test by incorrect order in postgres

This commit is contained in:
Ceeram 2012-02-10 23:51:41 +01:00
parent 2897c72215
commit 1f0af2a138

View file

@ -3409,7 +3409,8 @@ class ModelWriteTest extends BaseModelTest {
$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(