\SiteTreeFutureStateTest
Tests the functionality for previewing the future state of the site.
Synopsis
class SiteTreeFutureStateTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'cmsworkflow/tests/SiteTreeFutureStateTest.yml';
- protected array $illegalExtensions = ;
- protected array $requiredExtensions = ;
- // methods
- public void testPagesWithBothEmbargoAndExpiryAreDisplayedCorrectlyInFutureState()
- public void testTopLevelPagesArentAffectedByEmbargoedChildren()
- public void testEmbargoAndExpiryAffectsRegularDataObjectRequests()
- public void test404PageOnFutureState()
- public void testGetOneByStageInFutureState()
- public void testVirtualPageFutureState()
- public void testExpirySetAfterVirtualPageCreated()
- public void testEmbargoedEdit()
- public void setUp()
- public void tearDown()
Hierarchy
Extends
- SapphireTest
Tasks
Line | Task |
---|---|
204 | - remove UI<->model coupling |
Members
protected
- $illegalExtensions
- $requiredExtensions
public
- $fixture_file
Methods
public
- setUp()
- tearDown()
- test404PageOnFutureState() — Test that the 404 page can be found, which also tests that subclass fields work on future state view.
- testEmbargoAndExpiryAffectsRegularDataObjectRequests()
- testEmbargoedEdit() — Test embargo edits for both regular and virtual pages.
- testExpirySetAfterVirtualPageCreated() — Test that an expiry date set after the virtual page is created is respected in the tes
- testGetOneByStageInFutureState()
- testPagesWithBothEmbargoAndExpiryAreDisplayedCorrectlyInFutureState()
- testTopLevelPagesArentAffectedByEmbargoedChildren()
- testVirtualPageFutureState() — Test virtual pages for future state