Fix language codes test result order

Fixes issue with Oracle by enforcing the order of the results to check.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2021-03-24 10:26:06 +01:00 committed by backportbot[bot]
parent bad3243944
commit 447ccc1e55
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class UpdateLanguageCodesTest extends TestCase {
->from('preferences') ->from('preferences')
->where($qb->expr()->eq('appid', $qb->createNamedParameter('core'))) ->where($qb->expr()->eq('appid', $qb->createNamedParameter('core')))
->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter('lang'))) ->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter('lang')))
->orderBy('userid')
->execute(); ->execute();
$rows = $result->fetchAll(); $rows = $result->fetchAll();