Source of file POIMapPageTest.php
Size: 0,765 Bytes - Last Modified: 2021-12-23T10:58:59+00:00
/var/www/docs.ssmods.com/process/src/tests/POIMapPageTest.php
123456789101112131415161718192021222324 | <?php class POIMapPageTest extends SapphireTest { public function testGetCMSFields() { $poiMapPage = new POIMapPage(); // check extensions $this->assertTrue($poiMapPage->hasExtension('MapExtension')); $this->assertTrue($poiMapPage->hasExtension('PointsOfInterestLayerExtension')); // check that the location tab has been removed $fields = $poiMapPage->getCMSFields(); $tab = $fields->findOrMakeTab('Root'); $fields = $tab->FieldList(); $names = array(); foreach ($fields as $field) { $names[] = $field->getName(); } $this->assertNotContains('Location', $names); } } |