You are here

public function TokenTypeTest::testTokenTypeInvalidNeedsDataException in Hook Event Dispatcher 8

Test TokenType invalid needs data exception.

File

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

Class

TokenTypeTest
Class TokenTypeTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Token

Code

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