Source of file LinkTest.php
Size: 0,794 Bytes - Last Modified: 2021-12-23T10:58:56+00:00
/var/www/docs.ssmods.com/process/src/tests/LinkTest.php
123456789101112131415161718192021222324252627282930313233 | <?php namespace WebOfTalent\Links\Tests; use SilverStripe\Dev\SapphireTest; class LinkTest extends SapphireTest { public function testGetCMSFields() { $link = new Link(); $fields = $link->getCMSFields(); //$tab = $fields->findOrMakeTab('Root'); //$fields = $tab->fieldList(); $names = array(); foreach ($fields as $field) { array_push($names, $field->getName()); } $expected = array('Title', 'LinkType', 'URL', 'InternalPageID', 'Description', 'Locale'); $this->assertEquals($expected, $names); } public function testLoadLink() { $this->markTestSkipped('TODO'); } public function testGetWebsiteAddress() { $this->markTestSkipped('TODO'); } } |