public function TokenEventTest::testTokenReplacementEventInvalidTypeException in Hook Event Dispatcher 8
Test TokenReplacementEvent invalid type exception.
File
- tests/
src/ Unit/ Token/ TokenEventTest.php, line 169
Class
- TokenEventTest
- Class TokenEventTest.
Namespace
Drupal\Tests\hook_event_dispatcher\Unit\TokenCode
public function testTokenReplacementEventInvalidTypeException() {
$metaData = $this
->createMock(BubbleableMetadata::class);
$event = new TokensReplacementEvent('', [], [], [], $metaData);
$this
->setExpectedException(\UnexpectedValueException::class);
$event
->setReplacementValue(NULL, '', '');
}