ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

Referenced by setUp().

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($format !==null) $name
Definition: metadata.php:230
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

◆ setUp()

ilWorkflowEngineBaseTest::setUp ( )
protected

Definition at line 29 of file ilWorkflowEngineBaseTest.php.

References setGlobalVariable().

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  }
+ Here is the call graph for this function:

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