ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

References $DIC, $GLOBALS, and $name.

Referenced by setUp().

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  }
global $DIC
Definition: saml.php:7
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if($format !==null) $name
Definition: metadata.php:146
+ Here is the caller graph for this function:

◆ setUp()

ilWorkflowEngineBaseTest::setUp ( )
protected

Definition at line 27 of file ilWorkflowEngineBaseTest.php.

References array, and setGlobalVariable().

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  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

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