ilSimpleEmitterTest is part of the petri net based workflow engine.
More...
ilSimpleEmitterTest is part of the petri net based workflow engine.
This class holds all tests for the class emitters/class.ilSimpleEmitter
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
- Version
- $Id$
/
Definition at line 15 of file ilSimpleEmitterTest.php.
◆ setUp()
ilSimpleEmitterTest::setUp |
( |
| ) |
|
Definition at line 17 of file ilSimpleEmitterTest.php.
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
23 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
27 require_once
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
31 $this->workflow->addNode($this->node);
33 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilSimpleEmitter.php';
◆ tearDown()
ilSimpleEmitterTest::tearDown |
( |
| ) |
|
Definition at line 36 of file ilSimpleEmitterTest.php.
References $ilSetting.
39 if ($ilSetting != NULL)
41 $ilSetting->delete(
'IL_PHPUNIT_TEST_TIME');
42 $ilSetting->delete(
'IL_PHPUNIT_TEST_MICROTIME');
◆ testConstructorValidContext()
ilSimpleEmitterTest::testConstructorValidContext |
( |
| ) |
|
◆ testEmitValidState()
ilSimpleEmitterTest::testEmitValidState |
( |
| ) |
|
Definition at line 95 of file ilSimpleEmitterTest.php.
98 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
101 $target_node->addDetector($target_detector);
104 $emitter->setTargetDetector($target_detector);
109 $actual = $target_detector->getDetectorState();
110 $this->assertTrue($actual);
◆ testGetContext()
ilSimpleEmitterTest::testGetContext |
( |
| ) |
|
Definition at line 60 of file ilSimpleEmitterTest.php.
66 $actual = $emitter->getContext();
69 if ($actual === $this->node)
71 $this->assertEquals($actual, $this->node);
73 $this->assertTrue(
false,
'Context not identical.');
◆ testSetGetTargetDetector()
ilSimpleEmitterTest::testSetGetTargetDetector |
( |
| ) |
|
Definition at line 77 of file ilSimpleEmitterTest.php.
80 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
83 $target_node->addDetector($target_detector);
88 $emitter->setTargetDetector($target_detector);
91 $actual = $emitter->getTargetDetector();
92 $this->assertEquals($target_detector, $actual);
The documentation for this class was generated from the following file: