Symbiote\AdvancedWorkflow\Tests\WorkflowEmbargoExpiryTest
- Author: marcus@symbiote.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class WorkflowEmbargoExpiryTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'WorkflowEmbargoExpiry.yml';
- protected static array $required_extensions = ;
- protected static array $illegal_extensions = ;
- // methods
- protected void setUp()
- protected void tearDown()
- private DataObject startWorkflow()
- private DataObject finishWorkflow()
- private DataObject getLive()
- public void testEmptyEmbargoExpiry()
- public void testPastEmbargo()
- public void testPastExpiry()
- public void testPastEmbargoExpiry()
- public void testPastEmbargoFutureExpiry()
- public void testFutureEmbargoExpiry()
- public void testPastEmbargoAfterExpiry()
- public void testFutureEmbargoAfterExpiry()
- public void testPastSameEmbargoExpiry()
- public void testFutureSameEmbargoExpiry()
- public void testDesiredRemovesJobs()
- public void testIsPublishScheduled()
- public void testIsUnPublishScheduled()
- public void testStatusFlags()
- public void testCanEditConfig()
- protected void createDefinition()
- public void testDuplicateRemoveEmbargoExpiry()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
- $illegal_extensions — array
- $required_extensions — array
Methods
private
- finishWorkflow() — Start and finish a workflow which will publish the page immediately basically.
- getLive() — Retrieves the live version for an object
- startWorkflow() — Start a workflow for a page, this will set it into a state where a workflow is currently being processes
protected
public
- testCanEditConfig() — Test workflow definition "Can disable edits during embargo" Make sure page cannot be edited when an embargo is in place
- testDesiredRemovesJobs() — When an item is queued for publishing or unpublishing and new dates are entered
- testDuplicateRemoveEmbargoExpiry() — Make sure that publish and unpublish dates are not carried over to the duplicates.
- testEmptyEmbargoExpiry() — Test when embargo and expiry are both empty.
- testFutureEmbargoAfterExpiry() — Test for embargo after expiry in the future
- testFutureEmbargoExpiry() — Test for embargo and expiry in the future
- testFutureSameEmbargoExpiry() — Test for embargo and expiry in the future, both have the same value
- testIsPublishScheduled() — Tests that checking for publishing scheduled state is working
- testIsUnPublishScheduled() — Tests that checking for un-publishing scheduled state is working
- testPastEmbargo() — Test for embargo in the past
- testPastEmbargoAfterExpiry() — Test for embargo after expiry in the past
- testPastEmbargoExpiry() — Test for embargo and expiry in the past
- testPastEmbargoFutureExpiry() — Test for embargo in the past and expiry in the future
- testPastExpiry() — Test for expiry in the past
- testPastSameEmbargoExpiry() — Test for embargo and expiry in the past, both have the same value
- testStatusFlags() — Tests that status flags (badges) are added properly for a page