You are here

public function TokenTypeTest::testTokenTypeInvalidDescriptionException in Hook Event Dispatcher 8

Test TokenType invalid description exception.

File

tests/src/Unit/Token/TokenTypeTest.php, line 36

Class

TokenTypeTest
Class TokenTypeTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

public function testTokenTypeInvalidDescriptionException() {
  $this
    ->setExpectedException(\UnexpectedValueException::class);
  TokenType::create('', '')
    ->setDescription(NULL);
}