💚 Fix unit tests

This commit is contained in:
Eric
2019-10-17 12:19:23 +02:00
parent 36b325f71d
commit 5a1a6cf6f0
2 changed files with 6 additions and 5 deletions

View File

@@ -205,6 +205,11 @@ class OQLToSQLTest extends ItopDataTestCase
}
$oSearch = DBSearch::FromOQL($sOQL);
$sClass = $oSearch->GetClass();
if (empty($aOrderBy))
{
$aOrderBy = MetaModel::GetOrderByDefault($sClass);
}
$sSQLCount = $oSearch->MakeSelectQuery($aOrderBy, $aArgs, $aAttToLoad, $aExtendedDataSpec, 0, 0, true);
$fStart = $this->GetMicroTime();