Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
21 | public function testGroupFields() |
||
22 | { |
||
23 | $object = $this->objFromFixture('EditableFieldGroup', 'group-1'); |
||
24 | $fields = $object->Fields(); |
||
25 | $this->assertGreaterThan(0, $fields->Count()); |
||
26 | |||
27 | $cmsFields = $object->getCMSFields(); |
||
28 | $gridFields = $cmsFields->dataFieldByName('Fields'); |
||
29 | |||
30 | $this->assertTrue($gridFields !== null); |
||
31 | |||
32 | $list = $gridFields->getList(); |
||
33 | $this->assertEquals($list->Count(), $fields->Count()); |
||
34 | } |
||
35 | |||
45 |
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.