public function CollectPathsEventTest::testAddPath in Tome 8
@covers \Drupal\tome_static\Event\CollectPathsEvent::addPath
File
- modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php, line 24
Class
- CollectPathsEventTest
- Tests collect paths event class.
Namespace
Drupal\Tests\tome_static\KernelCode
public function testAddPath() {
$this->eventDispatcher
->addListener($this->eventName, [
$this,
'addPath',
]);
$paths = $this
->collectPaths();
$this
->assertEquals(1, count($paths));
$this
->assertUnsortedEquals($paths, [
'/my-path',
]);
}