public function ModifyHtmlEventTest::testGetPath in Tome 8
@covers \Drupal\tome_static\Event\ModifyHtmlEvent::getPath
File
- modules/
tome_static/ tests/ src/ Kernel/ ModifyHtmlEventTest.php, line 24
Class
- ModifyHtmlEventTest
- Tests modify HTML event class.
Namespace
Drupal\Tests\tome_static\KernelCode
public function testGetPath() {
$this->eventDispatcher
->addListener($this->eventName, [
$this,
'addInvokePath',
]);
$event = $this
->modifyHtml();
$this
->assertEquals('/my-path', $event
->getPath());
}