Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
11 | public function testUpdateCMSFields() { |
||
12 | $page = new OSMTestPageTO(); |
||
13 | $fields = $page->getCMSFields(); |
||
14 | $tab = $fields->findOrMakeTab('Root.Main'); |
||
15 | $fields = $tab->FieldList(); |
||
16 | $names = array(); |
||
17 | foreach ($fields as $field) { |
||
18 | $names[] = $field->getName(); |
||
19 | } |
||
20 | $this->assertNotContains('OpenStreetMapID', $names); |
||
21 | } |
||
22 | |||
29 |
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.