Source of file NearestPOIPageTest.php
Size: 0,569 Bytes - Last Modified: 2021-12-23T10:58:59+00:00
/var/www/docs.ssmods.com/process/src/tests/NearestPOIPageTest.php
123456789101112131415161718192021 | <?php class NearestPOIPageTest extends SapphireTest { protected static $fixture_file = 'mappable-poi/tests/pointsofinterest.yml'; public function testCMSFields() { $np = new NearestPOIPage(); $fields = $np->getCMSFields(); $tab = $fields->findOrMakeTab('Root.Layer'); $fields = $tab->FieldList(); $names = array(); foreach ($fields as $field) { $names[] = $field->getName(); } $expected = array('PointsOfInterestLayerID'); $this->assertEquals($expected, $names); } } |