ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 6 of file ilWorkflowEngineBaseTest.php.

Member Function Documentation

◆ setGlobalVariable()

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

Definition at line 12 of file ilWorkflowEngineBaseTest.php.

13 {
14 global $DIC;
15
16 $GLOBALS[$name] = $value;
17
18 unset($DIC[$name]);
19 $DIC[$name] = function ($c) use ($name) {
20 return $GLOBALS[$name];
21 };
22 }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
global $DIC
Definition: saml.php:7

References $c, $DIC, $GLOBALS, and $name.

Referenced by setUp().

+ Here is the caller graph for this function:

◆ setUp()

ilWorkflowEngineBaseTest::setUp ( )
protected

Reimplemented in ilSettingActivityTest, 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_013_DataOutput, test_014_DataObject, and test_015_Data_Wiring.

Definition at line 27 of file ilWorkflowEngineBaseTest.php.

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

References setGlobalVariable().

+ Here is the call graph for this function:

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