You are here

protected function UiHelperTrait::getUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getUrl()
  2. 9 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getUrl()

Get the current URL from the browser.

Return value

string The current URL.

14 calls to UiHelperTrait::getUrl()
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.
DateTimeTest::testDateFormatConfiguration in core/modules/system/tests/src/Functional/System/DateTimeTest.php
Tests date format configuration.
EmailFieldTest::testEmailField in core/modules/field/tests/src/Functional/Email/EmailFieldTest.php
Tests email field.

... See full list

File

core/tests/Drupal/Tests/UiHelperTrait.php, line 423

Class

UiHelperTrait
Provides UI helper methods.

Namespace

Drupal\Tests

Code

protected function getUrl() {
  return $this
    ->getSession()
    ->getCurrentUrl();
}