You are here

protected function CollectPathsEventTest::collectPaths in Tome 8

Triggers the collect paths event and returns the collected paths.

Parameters

array $paths: The initial paths array.

Return value

array The processed paths array once the collect paths event is triggered.

5 calls to CollectPathsEventTest::collectPaths()
CollectPathsEventTest::testAddPath in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
@covers \Drupal\tome_static\Event\CollectPathsEvent::addPath
CollectPathsEventTest::testAddPaths in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
@covers \Drupal\tome_static\Event\CollectPathsEvent::addPaths
CollectPathsEventTest::testDeletePath in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
@covers \Drupal\tome_static\Event\CollectPathsEvent::deletePath
CollectPathsEventTest::testReplacePath in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
@covers \Drupal\tome_static\Event\CollectPathsEvent::replacePath
CollectPathsEventTest::testReplacePaths in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
@covers \Drupal\tome_static\Event\CollectPathsEvent::replacePaths

File

modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php, line 85

Class

CollectPathsEventTest
Tests collect paths event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

protected function collectPaths(array $paths = []) {
  $event = new CollectPathsEvent($paths);
  $this->eventDispatcher
    ->dispatch($this->eventName, $event);
  return $event
    ->getPaths();
}