You are here

public function ModalPageTest::testCurrentPath in Modal 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/ModalPageTest.php \Drupal\Tests\modal_page\Kernel\ModalPageTest::testCurrentPath()

Test ModalPage::getCurrentPath().

File

tests/src/Kernel/ModalPageTest.php, line 58

Class

ModalPageTest
KernelTests for ModalPage service class.

Namespace

Drupal\Tests\modal_page\Kernel

Code

public function testCurrentPath() {
  $this
    ->assertSame($this->modalPage
    ->getCurrentPath(), $this->requestStack
    ->getCurrentRequest()
    ->getRequestUri());
}