Skip to content

Commit

Permalink
Forcing order on find('all') in test. It is not safe to asume returne…
Browse files Browse the repository at this point in the history
…d row order in postgres
  • Loading branch information
lorenzo committed Mar 16, 2010
1 parent c1f74c2 commit c51f407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/model/model_write.test.php
Expand Up @@ -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(
Expand Down

0 comments on commit c51f407

Please sign in to comment.