You are here

protected function UiHelperTrait::getUrl in Drupal 8

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

Get the current URL from the browser.

Return value

string The current URL.

52 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
Test 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.

... See full list

File

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

Class

UiHelperTrait
Provides UI helper methods.

Namespace

Drupal\Tests

Code

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