Permalink
Browse files

Forcing order on find('all') in test. It is not safe to asume returne…

…d row order in postgres
  • Loading branch information...
1 parent c1f74c2 commit c51f4076f708ef5c93ea0ce6b2704eb712e70717 @lorenzo lorenzo committed Mar 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/tests/cases/libs/model/model_write.test.php
@@ -1590,7 +1590,7 @@ function testSaveHabtmCustomKeys() {
$result = $Story->save();
$this->assertTrue($result);
- $result = $Story->find('all');
+ $result = $Story->find('all', array('order' => array('Story.story')));
$expected = array(
array(
'Story' => array(

0 comments on commit c51f407

Please sign in to comment.