You are here

public function MessageTemplateTest::testSetLabel in Message 8

Tests getting and setting label.

@covers ::setLabel @covers ::getLabel

File

tests/src/Unit/Entity/MessageTemplateTest.php, line 84

Class

MessageTemplateTest
Unit tests for the message template entity.

Namespace

Drupal\Tests\message\Unit\Entity

Code

public function testSetLabel() {
  $label = 'A label';
  $this->messageTemplate
    ->setLabel($label);
  $this
    ->assertEquals($label, $this->messageTemplate
    ->getLabel());
}