public function MessageTemplateTest::testSetTemplate in Message 8
Tests getting and setting template.
@covers ::setTemplate @covers ::getTemplate
File
- tests/
src/ Unit/ Entity/ MessageTemplateTest.php, line 96
Class
- MessageTemplateTest
- Unit tests for the message template entity.
Namespace
Drupal\Tests\message\Unit\EntityCode
public function testSetTemplate() {
$template = 'a_template';
$this->messageTemplate
->setTemplate($template);
$this
->assertEquals($template, $this->messageTemplate
->getTemplate());
}