You are here

public function TokenTest::testTokenInvalidDescriptionException in Hook Event Dispatcher 8

Test Token invalid description exception.

File

tests/src/Unit/Token/TokenTest.php, line 44

Class

TokenTest
Class TokenTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

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