You are here

public function FileSavedEventTest::testGetPath in Tome 8

@covers \Drupal\tome_static\Event\FileSavedEvent::getPath

File

modules/tome_static/tests/src/Kernel/FileSavedEventTest.php, line 24

Class

FileSavedEventTest
Tests file saved event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function testGetPath() {
  $this->eventDispatcher
    ->addListener($this->eventName, [
    $this,
    'getPath',
  ]);
  $event = $this
    ->fileSaved();
  $this
    ->assertEquals('/my-file-path', $event
    ->getPath());
}