mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-02 23:54:12 +01:00
N°6408 - CRUD : rework on DBUpdate reentrancy
This commit is contained in:
@@ -44,6 +44,7 @@ use lnkContactToTicket;
|
||||
use lnkFunctionalCIToTicket;
|
||||
use MetaModel;
|
||||
use Person;
|
||||
use PluginManager;
|
||||
use Server;
|
||||
use TagSetFieldData;
|
||||
use Ticket;
|
||||
@@ -146,6 +147,24 @@ class ItopDataTestCase extends ItopTestCase
|
||||
return $this->iTestOrgId;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/// MetaModel Utilities
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Allow test iApplicationObjectExtension objects to be added to the list of plugins without setup
|
||||
* just require the class file containing the object implementing iApplicationObjectExtension before calling ResetApplicationObjectExtensions()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function ResetApplicationObjectExtensions()
|
||||
{
|
||||
// Add ObjectModifyExtension to the plugin list
|
||||
$this->InvokeNonPublicStaticMethod(MetaModel::class, 'InitExtensions', []);
|
||||
// Instantiate the new object
|
||||
$this->InvokeNonPublicStaticMethod(PluginManager::class, 'ResetPlugins', []);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/// Database Utilities
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user