Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
17 | public function testUpdateCMSFields() { |
||
18 | $page = $this->objFromFixture('Page', 'page1'); |
||
19 | $fields = $page->getCMSFields(); |
||
20 | $tab = $fields->findOrMakeTab('Root.Template'); |
||
21 | $fields = $tab->FieldList(); |
||
22 | $names = array(); |
||
23 | foreach ($fields as $field) { |
||
24 | $names[] = $field->getName(); |
||
25 | } |
||
26 | $expected = array('AlternativeTemplate', 'infofield'); |
||
27 | } |
||
28 | } |
||
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.