You are here

public function ModifyHtmlEventTest::testAddInvokePath in Tome 8

@covers \Drupal\tome_static\Event\ModifyHtmlEvent::addInvokePath @covers \Drupal\tome_static\Event\ModifyHtmlEvent::getInvokePaths

File

modules/tome_static/tests/src/Kernel/ModifyHtmlEventTest.php, line 46

Class

ModifyHtmlEventTest
Tests modify HTML event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function testAddInvokePath() {
  $this->eventDispatcher
    ->addListener($this->eventName, [
    $this,
    'addInvokePath',
  ]);
  $event = $this
    ->modifyHtml();
  $this
    ->assertUnsortedEquals([
    '/my-new-path',
    '/my-new-path-again',
  ], $event
    ->getInvokePaths());
}