Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
5 | public function testGetCMSFields() |
||
6 | { |
||
7 | $poiMapPage = new POIMapPage(); |
||
8 | |||
9 | // check extensions |
||
10 | $this->assertTrue($poiMapPage->hasExtension('MapExtension')); |
||
11 | $this->assertTrue($poiMapPage->hasExtension('PointsOfInterestLayerExtension')); |
||
12 | |||
13 | // check that the location tab has been removed |
||
14 | $fields = $poiMapPage->getCMSFields(); |
||
15 | $tab = $fields->findOrMakeTab('Root'); |
||
16 | $fields = $tab->FieldList(); |
||
17 | $names = array(); |
||
18 | foreach ($fields as $field) { |
||
19 | $names[] = $field->getName(); |
||
20 | } |
||
21 | $this->assertNotContains('Location', $names); |
||
22 | } |
||
23 | } |
||
24 |