[TASK] Stabilize Extbase tests on PostgreSQL 81/58381/2
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 04:19:37 +0000 (06:19 +0200)
Resolves: #86360
Releases: master, 8.7
Change-Id: I34e6b720a93bd86f863fbf4ae0b5efb6cccdc76d
Reviewed-on: https://review.typo3.org/58381
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@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 bcfabdb..cab6b47 100644 (file)
@@ -244,6 +244,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();
@@ -270,6 +272,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();