You are here

public function PathPlaceholderEventTest::testIsInvalid in Tome 8

@covers \Drupal\tome_static\Event\PathPlaceholderEvent::setInvalid @covers \Drupal\tome_static\Event\PathPlaceholderEvent::isInvalid

File

modules/tome_static/tests/src/Kernel/PathPlaceholderEventTest.php, line 36

Class

PathPlaceholderEventTest
Tests path placeholder event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function testIsInvalid() {
  $this->eventDispatcher
    ->addListener($this->eventName, [
    $this,
    'isInvalid',
  ]);
  $event = $this
    ->pathPlaceholder();
  $this
    ->assertEquals(TRUE, $event
    ->isInvalid());
}