You are here

public function TokenTypeTest::testTokenTypeInvalidNameException in Hook Event Dispatcher 8

Test TokenType invalid name exception.

File

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

Class

TokenTypeTest
Class TokenTypeTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

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