DNADesign\Elemental\Tests\Extensions\ElementalAreasExtensionTest
Synopsis
class ElementalAreasExtensionTest
extends SapphireTest
{
- // members
- protected static array $required_extensions = ;
- protected static array $extra_dataobjects = ;
- // methods
- protected void setUp()
- public void testGetElementalTypesSortsAlphabetically()
- public void testGetElementalTypesAreNotSortedAlphabetically()
- private void assertContainsInOrder()
- public void testContentFieldsAreRemovedByDefault()
- public array provideContentFieldPreservationSettings()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $required_extensions
Methods
private
- assertContainsInOrder() — We need to check that the order of the elements is correct, but there might be more element types installed than we're aware of, so we first extract the elements we want from the source list and check the order afterwards.
protected
public
- provideContentFieldPreservationSettings() — Provide data for testing both settings and override precedence of Content field replacement Settings provided as: - ElementalAreasExtension.keep_content_fields (the global setting) - SiteTree.elemental_keep_content_field (the class level setting - should take precedence) - The expected class of the Field in the FieldList (LiteralField OR HTMLEditorField)
- testContentFieldsAreRemovedByDefault()
- testGetElementalTypesAreNotSortedAlphabetically()
- testGetElementalTypesSortsAlphabetically()