23 chdir(dirname(__FILE__));
24 chdir(
'../../../../');
27 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
30 if (!defined(
'IL_PHPUNIT_TEST')) {
31 define(
'IL_PHPUNIT_TEST',
false);
36 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
40 require_once
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
44 $this->workflow->addNode($this->node);
46 require_once
'./Services/WorkflowEngine/classes/activities/class.ilScriptActivity.php';
48 $this->test_dir = vfs\vfsStream::setup(
'example');
54 if ($ilSetting != null) {
69 'Construction failed with valid context passed to constructor.' 79 $actual = $activity->getContext();
82 if ($actual === $this->node) {
83 $this->assertEquals($actual, $this->node);
85 $this->assertTrue(
false,
'Context not identical.');
94 $activity->setMethod(
function () {
95 return 'Hallo, Welt!';
102 $this->assertEquals(
$response(),
"Hallo, Welt!");
ilScriptActivityTest is part of the workflow engine.
$test_dir
vfsStream Test Directory, see setup.
testConstructorValidContext()