Skip to content

Commit

Permalink
Trying to fix flaky test on postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 15, 2014
1 parent 456cd97 commit 0d620a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/TestCase/ORM/QueryRegressionTest.php
Expand Up @@ -234,7 +234,12 @@ public function testBelongsToManyDeepSave($strategy) {
'Highlights' => ['associated' => ['_joinData' => ['associated' => ['Authors']], 'Authors']]
]
]);
$entity = $articles->get(2, ['contain' => ['SpecialTags.Authors', 'Highlights.Authors']]);
$entity = $articles->get(2, [
'contain' => [
'SpecialTags.Authors' => ['sort' => ['Authors.id']],
'Highlights.Authors' => ['sort' => ['Authors.id']]
]
]);
$this->assertEquals('mariano', end($entity->special_tags)->author->name);
$this->assertEquals('mark', end($entity->highlights)->author->name);
}
Expand Down

0 comments on commit 0d620a7

Please sign in to comment.