public function TokenTest::testTokenInvalidNameException in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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\TokenCode
public function testTokenInvalidNameException() : void {
$this
->expectException(UnexpectedValueException::class);
Token::create('', '', NULL);
}