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