Browse Source

Making test more resilient for SQL Server

Jose Lorenzo Rodriguez 9 years ago
parent
commit
2cb3803a9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/QueryRegressionTest.php

+ 1 - 1
tests/TestCase/ORM/QueryRegressionTest.php

@@ -572,7 +572,7 @@ class QueryRegressionTest extends TestCase
         $findViaSubquery = $featuredTags
             ->find()
             ->where(['FeaturedTags.tag_id' => 2])
-            ->contain('Tags.TagsTranslations');
+            ->contain(['Tags.TagsTranslations' => ['sort' => 'TagsTranslations.id']]);
 
         $expected = [2 => 'tag 2 translated into en_us'];