\DMSSiteTreeExtensionTest
Synopsis
class DMSSiteTreeExtensionTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'dms/tests/dmstest.yml';
- protected array $requiredExtensions = ;
- // methods
- public void testCanDisableDocumentSetsTab()
- public array documentSetEnabledConfigProvider()
- public void testDocumentSetsGridFieldIsCorrectlyConfigured()
- public void testGetTitleWithNumberOfDocuments()
- public void testOnBeforePublishUnEmbargoesDocumentsSetAsEmbargoedUntilPublish()
- public void testGetRelatedDocumentsForAutocompleter()
Hierarchy
Extends
- SapphireTest
Members
protected
- $fixture_file
- $requiredExtensions
Methods
public
- documentSetEnabledConfigProvider()
- testCanDisableDocumentSetsTab() — Ensure that setting the configuration property "documents_enabled" to false for a page type will prevent the CMS fields from being modified.
- testDocumentSetsGridFieldIsCorrectlyConfigured() — Tests for the Document Sets GridField.
- testGetRelatedDocumentsForAutocompleter() — Ensure that document sets that are assigned to pages to not show up in "link existing" autocomplete search results
- testGetTitleWithNumberOfDocuments() — Ensure that a page title can be retrieved with the number of related documents it has (across all document sets).
- testOnBeforePublishUnEmbargoesDocumentsSetAsEmbargoedUntilPublish() — Ensure that documents marked as "embargo until publish" are unmarked as such when a page containing them is published