From 53e034ce4fb83822dc184c9282391295f3954c53 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 21 Oct 2019 16:37:56 +0200 Subject: [PATCH] :green_heart: Fix unit tests --- test/core/OQLToSQLAllClassesTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/core/OQLToSQLAllClassesTest.php b/test/core/OQLToSQLAllClassesTest.php index 2bd24e991..afa3796b3 100644 --- a/test/core/OQLToSQLAllClassesTest.php +++ b/test/core/OQLToSQLAllClassesTest.php @@ -303,14 +303,7 @@ class OQLToSQLAllCLassesTest extends ItopDataTestCase $sOQL = "SELECT $sClass"; // Compute Order by - $aOrderBy = array(); - foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) - { - if ($oAttDef->IsDirectField()) - { - $aOrderBy[$sClass.'.'.$sAttCode] = true; - } - } + $aOrderBy = array($sClass.'.id' => true); $aData[$sOQL] = array($sOQL, $aOrderBy, array(), null, null, 10, 0); }