You are here

public function MessageTemplateTest::testIsLocked in Message 8

Tests if the template is locked.

@covers ::isLocked

File

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

Class

MessageTemplateTest
Unit tests for the message template entity.

Namespace

Drupal\Tests\message\Unit\Entity

Code

public function testIsLocked() {
  $this
    ->assertTrue($this->messageTemplate
    ->isLocked());
  $this->messageTemplate
    ->enforceIsNew(TRUE);
  $this
    ->assertFalse($this->messageTemplate
    ->isLocked());
}