Source of file PointsOfInterestLayerExtensionTest.php
Size: 0,858 Bytes - Last Modified: 2021-12-23T10:58:59+00:00
/var/www/docs.ssmods.com/process/src/tests/PointsOfInterestLayerExtensionTest.php
12345678910111213141516171819202122232425262728293031 | <?php class PointsOfInterestLayerExtensionTest extends SapphireTest { public function setUpOnce() { $this->requiredExtensions = array( 'POILayerExtensionPageTO' => array('MapExtension', 'PointsOfInterestLayerExtension'), ); parent::setUpOnce(); } public function testUpdateCMSFields() { $page = new POILayerExtensionPageTO(); $fields = $page->getCMSFields(); $tab = $fields->findOrMakeTab('Root.MapLayers'); $fields = $tab->FieldList(); $names = array(); foreach ($fields as $field) { $names[] = $field->getName(); } $this->assertEquals(array('POI Layers'), $names); } } class POILayerExtensionPageTO extends Page implements TestOnly { } |