| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 | public function testNoAddNewOrExistingButtons()  | 
            ||
| 9 |     { | 
            ||
| 10 | $fields = DMSDocumentCartSubmission::create()->getCMSFields();  | 
            ||
| 11 |         $gridField = $fields->fieldByName('Root.Items.Items'); | 
            ||
| 12 |         $this->assertInstanceOf('GridField', $gridField); | 
            ||
| 13 | |||
| 14 | $config = $gridField->getConfig();  | 
            ||
| 15 |         $this->assertNull($config->getComponentByType('GridFieldAddExistingAutocompleter')); | 
            ||
| 16 |         $this->assertNull($config->getComponentByType('GridFieldAddNewButton')); | 
            ||
| 17 | }  | 
            ||
| 18 | }  | 
            ||
| 19 | 
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.