| 1 | <?php  | 
            ||
| 3 | class DMSDocumentCartSubmissionTest extends SapphireTest  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 4 | { | 
            ||
| 5 | protected $usesDatabase = true;  | 
            ||
| 6 | |||
| 7 | /**  | 
            ||
| 8 | * Test that the add new and existing GridField components have been removed  | 
            ||
| 9 | */  | 
            ||
| 10 | public function testNoAddNewOrExistingButtons()  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Ensure that a "created at" date is set when a record is created  | 
            ||
| 23 | */  | 
            ||
| 24 | public function testCreatedAtIsSetOnWrite()  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Ensure that the scaffolded "created at" is readonly in the CMS  | 
            ||
| 35 | */  | 
            ||
| 36 | public function testCreatedAtIsReadonly()  | 
            ||
| 43 | }  | 
            ||
| 44 | 
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.