22 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
26 require_once
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
30 $this->workflow->addNode($this->node);
32 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilDataEmitter.php';
39 if (isset($DIC[
'ilSetting'])) {
40 $DIC[
'ilSetting']->delete(
'IL_PHPUNIT_TEST_TIME');
41 $DIC[
'ilSetting']->delete(
'IL_PHPUNIT_TEST_MICROTIME');
54 'Construction failed with valid context passed to constructor.' 64 $actual = $emitter->getContext();
67 if ($actual === $this->node) {
68 $this->assertEquals($actual, $this->node);
70 $this->assertTrue(
false,
'Context not identical.');
77 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
80 $target_node->addDetector($target_detector);
85 $emitter->setTargetDetector($target_detector);
88 $actual = $emitter->getTargetDetector();
89 $this->assertEquals($target_detector, $actual);
95 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
98 $target_node->addDetector($target_detector);
101 $emitter->setTargetDetector($target_detector);
106 $actual = $target_detector->getDetectorState();
107 $this->assertTrue($actual);
Class ilWorkflowEngineBaseTest.
testConstructorValidContext()
__construct(Container $dic, ilPlugin $plugin)
ilDataEmitterTest is part of the petri net based workflow engine.
testSetGetTargetDetector()