\WorkflowEmbargoExpiryTest
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class WorkflowEmbargoExpiryTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'advancedworkflow/tests/WorkflowEmbargoExpiry.yml';
- protected array $requiredExtensions = ;
- protected array $illegalExtensions = ;
- // methods
- public void setUp()
- public void tearDown()
- public void __construct()
- 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()
- protected void logOut()
Hierarchy
Extends
- SapphireTest
Members
protected
- $illegalExtensions — array
- $requiredExtensions — array
public
- $fixture_file
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
- __construct()
- setUp()
- tearDown()
- 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