public function ModalPageTest::testCurrentPath in Modal 8.2
Same name and namespace in other branches
- 8.3 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\KernelCode
public function testCurrentPath() {
$this
->assertSame($this->modalPage
->getCurrentPath(), $this->requestStack
->getCurrentRequest()
->getRequestUri());
}