public function ModifyDestinationEventTest::testSetDestination in Tome 8
@covers \Drupal\tome_static\Event\ModifyDestinationEvent::setDestination @covers \Drupal\tome_static\Event\ModifyDestinationEvent::getDestination
File
- modules/
tome_static/ tests/ src/ Kernel/ ModifyDestinationEventTest.php, line 25
Class
- ModifyDestinationEventTest
- Tests modify destination event class.
Namespace
Drupal\Tests\tome_static\KernelCode
public function testSetDestination() {
$this->eventDispatcher
->addListener($this->eventName, [
$this,
'setDestination',
]);
$destination = $this
->ModifyDestination();
$this
->assertEquals('/my-new-destination', $destination);
}