| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 5 | public function testGetCMSFields() |
||
| 6 | { |
||
| 7 | $staff = new Staff(); |
||
| 8 | $fields = $staff->getCMSFields(); |
||
| 9 | $imageFields = $this->getFieldNamesForTab($fields, 'Root.Image'); |
||
| 10 | $this->assertEquals(array('Photo'), $imageFields); |
||
| 11 | |||
| 12 | $jobFields = $this->getFieldNamesForTab($fields, 'Root.JobDetail'); |
||
| 13 | $expected = array('JobTitle', 'Email', 'TelephoneNumberDesk', |
||
| 14 | 'TelephoneNumberMobile'); |
||
| 15 | $this->assertEquals($expected, $jobFields); |
||
| 16 | } |
||
| 17 | |||
| 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.