You are here

public function TokenTest::testTokenInvalidTypeException in Hook Event Dispatcher 8

Test Token invalid type exception.

File

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

Class

TokenTest
Class TokenTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

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