Symbiote\AdvancedWorkflow\Tests\WorkflowEngineTest
Tests for the workflow engine.
- Author: marcus@symbiote.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class WorkflowEngineTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'workflowinstancetargets.yml';
- // methods
- public void testCreateWorkflowInstance()
- public void testExecuteImmediateWorkflow()
- public void testInstanceGetTargetPublished()
- public void testInstanceGetTargetDraft()
- public void testPublishAction()
- public void testCreateDefinitionWithEmptyTitle()
- protected void createDefinition()
- public void testCreateFromTemplate()
- public void testCanDeleteWorkflow()
- public void testDeleteWorkflowTargetStillWorks()
- public void testInstanceDiff()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
protected
public
- testCanDeleteWorkflow() — Tests whether if user(s) are able to delete a workflow, dependent on permissions.
- testCreateDefinitionWithEmptyTitle()
- testCreateFromTemplate()
- testCreateWorkflowInstance()
- testDeleteWorkflowTargetStillWorks() — For a context around this test, see: https://github.com/symbiote/advancedworkflow/issues/141
- testExecuteImmediateWorkflow()
- testInstanceDiff() — Test the diff showing only fields that have changes made to it in a data object.
- testInstanceGetTargetDraft() — Ensure WorkflowInstance returns expected values for a Draft target object.
- testInstanceGetTargetPublished() — Ensure WorkflowInstance returns expected values for a Published target object.
- testPublishAction()