ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilWorkflowEngineBaseTest Class Reference

Class ilWorkflowEngineBaseTest. More...

+ Inheritance diagram for ilWorkflowEngineBaseTest:
+ Collaboration diagram for ilWorkflowEngineBaseTest:

Protected Member Functions

 setGlobalVariable ($name, $value)
 
 setUp ()
 

Detailed Description

Class ilWorkflowEngineBaseTest.

Definition at line 8 of file ilWorkflowEngineBaseTest.php.

Member Function Documentation

◆ setGlobalVariable()

ilWorkflowEngineBaseTest::setGlobalVariable (   $name,
  $value 
)
protected
Parameters
string$name
mixed$value

Definition at line 14 of file ilWorkflowEngineBaseTest.php.

15 {
16 global $DIC;
17
18 $GLOBALS[$name] = $value;
19
20 unset($DIC[$name]);
21 $DIC[$name] = function ($c) use ($name) {
22 return $GLOBALS[$name];
23 };
24 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
if($format !==null) $name
Definition: metadata.php:230
$DIC
Definition: xapitoken.php:46

References Vendor\Package\$c, $DIC, $GLOBALS, and $name.

Referenced by setUp().

+ Here is the caller graph for this function:

◆ setUp()

ilWorkflowEngineBaseTest::setUp ( )
protected

Reimplemented in ilSettingActivityTest, ilStaticMethodCallActivityTest, ilCounterDetectorTest, ilDataDetectorTest, ilEventDetectorTest, ilSimpleDetectorTest, ilTimerDetectorTest, ilActivationEmitterTest, ilDataEmitterTest, ilSimpleEmitterTest, ilBasicNodeTest, ilCaseNodeTest, ilConditionalNodeTest, ilPluginNodeTest, test_001_EmptyWorkflow, test_002_StartEvent, test_003_ParallelGateway, test_004_InclusiveGateway, test_005_ExclusiveGateway, test_006_Task, test_007_IntermediateCatchEvent, test_008_IntermediateThrowEvent, test_009_EndEvent, test_010_ComplexGateway, test_011_EventBasedGateway, test_012_DataInput, test_014_DataObject, and test_015_Data_Wiring.

Definition at line 29 of file ilWorkflowEngineBaseTest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->setGlobalVariable('ilDB', $this->getMockBuilder('ilDBInterface')->getMock());
34
35 $this->setGlobalVariable(
36 'ilAppEventHandler',
37 $this->getMockBuilder('ilAppEventHandler')->disableOriginalConstructor()->setMethods(array('raise'))->getMock()
38 );
39
40 $this->setGlobalVariable(
41 'ilSetting',
42 $this->getMockBuilder('ilSetting')->disableOriginalConstructor()->setMethods(array('delete', 'get', 'set'))->getMock()
43 );
44 }

References setGlobalVariable().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: