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