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 had its "add new" button removed |
||
52 | */ |
||
53 | public function testDocumentSetsGridFieldHasNoAddButton() |
||
58 | |||
59 | /** |
||
60 | * Check that the document sets GridField has a data column for the parent page title. Here we check for the |
||
61 | * Page title existing in the DOM, since "Page" is guaranteed to exist somewhere else. |
||
62 | */ |
||
63 | public function testDocumentSetsGridFieldHasParentPageColumn() |
||
69 | } |
||
70 |
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.