You are here

public function TokenTest::testTokenInvalidNameException in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/tests/src/Unit/Token/TokenTest.php \Drupal\Tests\core_event_dispatcher\Unit\Token\TokenTest::testTokenInvalidNameException()

Test Token invalid token exception.

File

modules/core_event_dispatcher/tests/src/Unit/Token/TokenTest.php, line 19

Class

TokenTest
Class TokenTest.

Namespace

Drupal\Tests\core_event_dispatcher\Unit\Token

Code

public function testTokenInvalidNameException() : void {
  $this
    ->expectException(UnexpectedValueException::class);
  Token::create('', '', NULL);
}