Source of file PointsOfInterestLayerTest.php
Size: 0,614 Bytes - Last Modified: 2021-12-23T10:58:59+00:00
/var/www/docs.ssmods.com/process/src/tests/PointsOfInterestLayerTest.php
123456789101112131415161718192021222324 | <?php class PointsOfInterestLayerTest extends SapphireTest { public function testUpdateCMSFields() { $layer = new PointsOfInterestLayer(); $fields = $layer->getCMSFields(); $root = $fields->fieldByName('Root.Main'); $fields = $root->FieldList(); $names = array(); foreach ($fields as $field) { $names[] = $field->getName(); } $expected = array('Name', 'ShowGuideMarkers', 'DefaultIcon'); $this->assertEquals($expected, $names); } } class PointsOfInterestLayerTestObjectTO extends DataObject implements TestOnly { } |