mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 05:14:12 +01:00
N°2272 - OQL performance (empty class alias)
This commit is contained in:
@@ -13,6 +13,7 @@ define('PRECISION', 2);
|
||||
|
||||
use CMDBSource;
|
||||
use Combodo\iTop\Test\UnitTest\ItopDataTestCase;
|
||||
use DBObjectSearch;
|
||||
use DBSearch;
|
||||
use MetaModel;
|
||||
use SetupUtils;
|
||||
@@ -35,6 +36,15 @@ class OQLToSQLAllCLassesTest extends ItopDataTestCase
|
||||
SetupUtils::builddir(APPROOT.'log/test/OQLToSQL');
|
||||
}
|
||||
|
||||
public function testEmptyAlias()
|
||||
{
|
||||
$oFilter = new DBObjectSearch('Organization', '');
|
||||
$oFilter->AllowAllData();
|
||||
$sSQL = $oFilter->MakeSelectQuery();
|
||||
CMDBSource::Query($sSQL);
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
private function GetPreviousTestResult($sTestId)
|
||||
{
|
||||
$sResultFile = APPROOT.'log/test/OQLToSQL/'.$sTestId.'.txt';
|
||||
|
||||
Reference in New Issue
Block a user