mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
✅ N°6458 Improve ItopDataTestCase tests speed
What was measured : - 1'54 with previous code (always doing a reset in tearDown) - 1'44 without any ResetMetaModelQueyCacheGetObject call (but 3 tests are failing) - 1'44 with new optin mechanism + don't call Logoff if no current user logged
This commit is contained in:
@@ -304,6 +304,7 @@ class DBObjectTest extends ItopDataTestCase
|
||||
public function testCheckExtKeysSiloOnAttributeExternalKey()
|
||||
{
|
||||
//--- Preparing data...
|
||||
$this->bIsUsingSilo = true;
|
||||
$oAlwaysTrueCallback = $this->GetAlwaysTrueCallback();
|
||||
$oAlwaysFalseCallback = $this->GetAlwaysFalseCallback();
|
||||
|
||||
@@ -381,6 +382,7 @@ class DBObjectTest extends ItopDataTestCase
|
||||
public function testCheckExtKeysOnAttributeLinkedSetIndirect()
|
||||
{
|
||||
//--- Preparing data...
|
||||
$this->bIsUsingSilo = true;
|
||||
/** @var Organization $oDemoOrg */
|
||||
$oDemoOrg = MetaModel::GetObjectByName(Organization::class, 'Demo');
|
||||
/** @var Person $oPersonOnItDepartmentOrg */
|
||||
@@ -482,6 +484,7 @@ class DBObjectTest extends ItopDataTestCase
|
||||
public function testCheckExtKeysSiloOnAttributeObjectKey()
|
||||
{
|
||||
//--- Preparing data...
|
||||
$this->bIsUsingSilo = true;
|
||||
/** @var Organization $oDemoOrg */
|
||||
$oDemoOrg = MetaModel::GetObjectByName(Organization::class, 'Demo');
|
||||
/** @var Person $oPersonOnItDepartmentOrg */
|
||||
|
||||
Reference in New Issue
Block a user