You are here

public function PathEventTest::testWithEmptyPath in Hook Event Dispatcher 8

Test with empty path array.

File

tests/src/Unit/Path/PathEventTest.php, line 118

Class

PathEventTest
Class PathEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Path

Code

public function testWithEmptyPath() {
  $this->manager
    ->setMaxEventCount(0);
  hook_event_dispatcher_path_delete([]);
  hook_event_dispatcher_path_insert([]);
  hook_event_dispatcher_path_update([]);

  // Add this check so phpunit won't trigger incomplete test.
  self::assertTrue(TRUE);
}