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