Source of file PageFeedbackEntryTest.php
Size: 0,852 Bytes - Last Modified: 2021-12-23T11:00:08+00:00
/var/www/docs.ssmods.com/process/src/tests/Models/PageFeedbackEntryTest.php
1234567891011121314151617181920212223 | <?php namespace Vulcan\PageFeedback\Tests; use SilverStripe\Dev\FunctionalTest; use Vulcan\PageFeedback\Models\PageFeedbackEntry; class PageFeedbackEntryTest extends FunctionalTest { protected static $fixture_file = 'PageFeedbackEntryTest.yml'; public function testDisplayComment() { /** @var PageFeedbackEntry $withComment */ /** @var PageFeedbackEntry $withoutComment */ $withComment = $this->objFromFixture(PageFeedbackEntry::class, 'form_mode_with_comment'); $withoutComment = $this->objFromFixture(PageFeedbackEntry::class, 'form_mode_without_comment'); $this->assertEquals('Hello World!', $withComment->getDisplayComment()); $this->assertEquals('<em>' . _t('VulcanPageFeedback.CMS_NO_COMMENT', 'No comment was provided..') . '</em>', $withoutComment->getDisplayComment()); } } |