Browse Source

added sort to prevent from failing PostgreSQL test

IWASE 11 years ago
parent
commit
010ef9b63f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/ORM/CompositeKeysTest.php

+ 1 - 0
tests/TestCase/ORM/CompositeKeysTest.php

@@ -229,6 +229,7 @@ class CompositeKeyTest extends TestCase
             'targetTable' => $tags,
             'propertyName' => 'tags',
             'through' => 'SiteArticlesTags',
+            'sort' => 'SiteTags.id',
             'foreignKey' => ['article_id', 'site_id'],
             'targetForeignKey' => ['tag_id', 'site_id']
         ]);