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