mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
N°2272 - OQL performance (testability)
This commit is contained in:
@@ -62,6 +62,7 @@ class ItopDataTestCase extends ItopTestCase
|
||||
private $aCreatedObjects = array();
|
||||
|
||||
const USE_TRANSACTION = true;
|
||||
const CREATE_TEST_ORG = true;
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
@@ -82,7 +83,10 @@ class ItopDataTestCase extends ItopTestCase
|
||||
{
|
||||
CMDBSource::Query('START TRANSACTION');
|
||||
}
|
||||
$this->CreateTestOrganization();
|
||||
if (static::CREATE_TEST_ORG)
|
||||
{
|
||||
$this->CreateTestOrganization();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user