protected function UiHelperTrait::getUrl in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getUrl()
Get the current URL from the browser.
Return value
string The current URL.
50 calls to UiHelperTrait::getUrl()
- BlockFormMessagesTest::testValidationMessage in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ BlockFormMessagesTest.php - Tests that validation messages are shown on the block form.
- BooleanFieldTest::testBooleanField in core/
modules/ field/ tests/ src/ Functional/ Boolean/ BooleanFieldTest.php - Tests boolean field.
- BooleanFieldTest::testFormAccess in core/
modules/ field/ tests/ src/ Functional/ Boolean/ BooleanFieldTest.php - Tests field access.
- BrowserTestBase::getSessionCookies in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Get session cookies from current session.
- CommentPagerTest::clickLinkWithXPath in core/
modules/ comment/ tests/ src/ Functional/ CommentPagerTest.php - Follows a link found at a give xpath query.
File
- core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 520
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
protected function getUrl() {
return $this
->getSession()
->getCurrentUrl();
}