SilverStripe\ContentReview\Tests\ContentReviewSettingsTest
This class tests that settings are inherited correctly based on the inherited, custom or disabled settings.
Synopsis
class ContentReviewSettingsTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'ContentReviewSettingsTest.yml';
- protected static array $required_extensions = ;
- // methods
- public void testAdvanceReviewDate10Days()
- public void testAdvanceReviewDateNull()
- public void testAdvanceReviewFromCustomSettings()
- public void testAdvanceReviewFromInheritedSettings()
- public void testAdvanceReviewFromInheritedSiteConfigSettings()
- public void testGetSettingsObjectFromCustom()
- public void testGetSettingsObjectFromDisabled()
- public void testGetOptionObjectFromInheritedDisabled()
- public void testGetOptionObjectFromDeeplyInheritedPage()
- public void testGetSettingsObjectFromInheritPage()
- public void testGetSettingsObjectFromInheritedRootPage()
- public void testGetNextReviewDateFromCustomSettings()
- public void testGetNextReviewDateFromSiteConfigInheritedSetting()
- public void testGetNextReviewDateFromPageInheritedSetting()
- public void testUpdateNextReviewDateFromCustomToDisabled()
- public void testUpdateNextReviewDateFromDisabledToCustom()
- public void testParentChangedOptionsAndChildShouldToo()
- private bool|string addDaysToDate()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file — string
- $required_extensions — array
Methods
private
- addDaysToDate() — Note: all input dates should be DBDatetime or strings in CLDR date format. See {@link DBDate} for information
public
- testAdvanceReviewDate10Days()
- testAdvanceReviewDateNull()
- testAdvanceReviewFromCustomSettings()
- testAdvanceReviewFromInheritedSettings()
- testAdvanceReviewFromInheritedSiteConfigSettings()
- testGetNextReviewDateFromCustomSettings()
- testGetNextReviewDateFromPageInheritedSetting()
- testGetNextReviewDateFromSiteConfigInheritedSetting()
- testGetOptionObjectFromDeeplyInheritedPage()
- testGetOptionObjectFromInheritedDisabled()
- testGetSettingsObjectFromCustom()
- testGetSettingsObjectFromDisabled()
- testGetSettingsObjectFromInheritPage()
- testGetSettingsObjectFromInheritedRootPage()
- testParentChangedOptionsAndChildShouldToo()
- testUpdateNextReviewDateFromCustomToDisabled()
- testUpdateNextReviewDateFromDisabledToCustom()