| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 12 | public function testUpdateCMSFields() { |
||
| 13 | $page = new POILayerExtensionPageTO(); |
||
| 14 | $fields = $page->getCMSFields(); |
||
| 15 | $tab = $fields->findOrMakeTab('Root.MapLayers'); |
||
| 16 | $fields = $tab->FieldList(); |
||
| 17 | $names = array(); |
||
| 18 | foreach ($fields as $field) { |
||
| 19 | $names[] = $field->getName(); |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->assertEquals(array('POI Layers'), $names); |
||
|
1 ignored issue
–
show
|
|||
| 23 | } |
||
| 24 | |||
| 30 |
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.