1 | <?php |
||
3 | class DMSDocumentAdminTest extends FunctionalTest |
||
|
|||
4 | { |
||
5 | protected static $fixture_file = 'DMSDocumentAdminTest.yml'; |
||
6 | |||
7 | public function setUp() |
||
13 | |||
14 | /** |
||
15 | * Check that the default "add new" button is gone, and replaced with our customised version of it |
||
16 | */ |
||
17 | public function testGridFieldHasCustomisedAddNewButton() |
||
41 | |||
42 | /** |
||
43 | * Quick check to ensure that the ModelAdmin endpoint is working |
||
44 | */ |
||
45 | public function testModelAdminEndpointWorks() |
||
49 | |||
50 | /** |
||
51 | * Check that the document sets GridField has a data column for the parent page title. Here we check for the |
||
52 | * Page title existing in the DOM, since "Page" is guaranteed to exist somewhere else. |
||
53 | */ |
||
54 | public function testDocumentSetsGridFieldHasParentPageColumn() |
||
60 | |||
61 | /** |
||
62 | * Checks that the document sets GridField has a data column which links to the DocumentSets tab on |
||
63 | * the actual page in the CMS |
||
64 | */ |
||
65 | public function testDocumentSetsGridFieldHasLinkToCMSPageEditor() |
||
73 | } |
||
74 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.