[TASK] Stabilize Extbase tests on PostgreSQL 80/58380/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Sun, 23 Sep 2018 18:54:47 +0000 (20:54 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 24 Sep 2018 06:38:08 +0000 (08:38 +0200)
Resolves: #86360
Releases: master, 8.7
Change-Id: I34e6b720a93bd86f863fbf4ae0b5efb6cccdc76d
Reviewed-on: https://review.typo3.org/58380
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php

index 2540a37..0776056 100644 (file)
@@ -237,6 +237,8 @@ class TranslationTest extends \TYPO3\TestingFramework\Core\Functional\Functional
         $querySettings->setRespectSysLanguage(true);
         $querySettings->setIgnoreEnableFields(true);
         $querySettings->setLanguageUid(0);
+        //we need it to have stable results on pgsql
+        $query->setOrderings(['uid' => QueryInterface::ORDER_ASCENDING]);
 
         /** @var Post[] $posts */
         $posts = $query->execute()->toArray();
@@ -263,6 +265,8 @@ class TranslationTest extends \TYPO3\TestingFramework\Core\Functional\Functional
         $querySettings->setRespectSysLanguage(true);
         $querySettings->setIgnoreEnableFields(true);
         $querySettings->setLanguageUid(2);
+        //we need it to have stable results on pgsql
+        $query->setOrderings(['uid' => QueryInterface::ORDER_ASCENDING]);
 
         /** @var Post[] $posts */
         $posts = $query->execute()->toArray();