Browse Source

Another attempt at fixing flaky test in postgres

Jose Lorenzo Rodriguez 11 years ago
parent
commit
01b86ede33
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/TestCase/ORM/QueryRegressionTest.php

+ 3 - 2
tests/TestCase/ORM/QueryRegressionTest.php

@@ -236,8 +236,9 @@ class QueryRegressionTest extends TestCase {
 		]);
 		$entity = $articles->get(2, [
 			'contain' => [
-				'SpecialTags.Authors' => ['sort' => ['Authors.id']],
-				'Highlights.Authors' => ['sort' => ['Authors.id']]
+				'SpecialTags' => ['sort' => ['SpecialTags.id' => 'ASC']],
+				'SpecialTags.Authors',
+				'Highlights.Authors'
 			]
 		]);
 		$this->assertEquals('mariano', end($entity->special_tags)->author->name);