You are here

public function TokenTypeTest::testTokenTypeInvalidTypeException in Hook Event Dispatcher 8

Test TokenType invalid type exception.

File

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

Class

TokenTypeTest
Class TokenTypeTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

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