23                chdir( dirname ( __FILE__ ) );
 
   24                chdir(
'../../../../');
 
   28                        include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
 
   31                catch ( Exception $exception )
 
   33                        if (!
defined(
'IL_PHPUNIT_TEST'))
 
   35                                define(
'IL_PHPUNIT_TEST', FALSE);
 
   40                require_once 
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
 
   44                require_once 
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
 
   48                $this->workflow->addNode($this->node);
 
   50                require_once 
'./Services/WorkflowEngine/classes/activities/class.ilStopWorkflowActivity.php';
 
   52                $this->test_dir = vfs\vfsStream::setup(
'example');
 
   74                        'Construction failed with valid context passed to constructor.' 
   84                $actual = $activity->getContext();
 
   87                if ($actual === $this->node)
 
   89                        $this->assertEquals($actual, $this->node);
 
   91                        $this->assertTrue(
false, 
'Context not identical.');
 
   97                $workflowMock = $this->getMockBuilder(
'ilEmptyWorkflow')
 
   98                                                           ->setMethods(array(
'stopWorkflow'))
 
  101                $workflowMock->expects($this->once())
 
  102                                           ->method(
'stopWorkflow');
 
  108                $activity->execute();
 
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection
ilStopWorkflowActivityTest is part of the workflow engine.
testConstructorValidContext()
$test_dir
vfsStream Test Directory, see setup.
@noinspection PhpIncludeInspection
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'