\DMSDocumentAdminTest
Synopsis
class DMSDocumentAdminTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'DMSDocumentAdminTest.yml';
- // methods
- public void setUp()
- public void testGridFieldHasCustomisedButtons()
- public void testModelAdminEndpointWorks()
- public void testDocumentSetsGridFieldHasParentPageColumn()
- public void testDocumentSetsGridFieldHasLinkToCMSPageEditor()
Hierarchy
Extends
- FunctionalTest
Members
protected
- $fixture_file
Methods
public
- setUp()
- testDocumentSetsGridFieldHasLinkToCMSPageEditor() — Checks that the document sets GridField has a data column which links to the DocumentSets tab on the actual page in the CMS
- testDocumentSetsGridFieldHasParentPageColumn() — Check that the document sets GridField has a data column for the parent page title. Here we check for the Page title existing in the DOM, since "Page" is guaranteed to exist somewhere else.
- testGridFieldHasCustomisedButtons() — Check that the default "add new" and "edit" buttons are gone, and replaced with our customised version of it
- testModelAdminEndpointWorks() — Quick check to ensure that the ModelAdmin endpoint is working