22 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
26 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
33 if ($ilSetting != null) {
34 $ilSetting->delete(
'IL_PHPUNIT_TEST_TIME');
35 $ilSetting->delete(
'IL_PHPUNIT_TEST_MICROTIME');
48 'Construction failed with valid context passed to constructor.' 58 $actual = $node->getContext();
61 if ($actual === $this->workflow) {
62 $this->assertEquals($actual, $this->workflow);
64 $this->assertTrue(
false,
'Context not identical.');
72 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
74 $node->addDetector($detector);
80 $actual = $node->isActive();
81 $this->assertTrue($actual);
88 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
90 $node->addDetector($detector);
96 $this->assertTrue($node->isActive(),
'Node should be active but is inactive.');
98 $this->assertFalse($node->isActive(),
'Node should be inactive but is active.');
testConstructorValidContext()
testIsActiveAndActivate()
ilPluginNodeTest is part of the petri net based workflow engine.