💚 Fix unit tests

This commit is contained in:
Eric
2019-10-21 16:37:56 +02:00
parent cd4db1db06
commit 53e034ce4f

View File

@@ -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);
}