function AssertContentTrait::getUrl

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getUrl()

Get the current URL from the cURL handler.

Return value

string The current URL.

11 calls to AssertContentTrait::getUrl()
AssertContentTrait::parse in core/tests/Drupal/KernelTests/AssertContentTrait.php
Parse content returned from curlExec using DOM and SimpleXML.
CommentTestBase::postComment in core/modules/comment/src/Tests/CommentTestBase.php
Posts a comment.
ImageFieldTestBase::uploadNodeImage in core/modules/image/src/Tests/ImageFieldTestBase.php
Upload an image to a node.
SimpleTestBrowserTest::testInternalBrowser in core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
Test the internal browsers functionality.
WebTestBase::assertUrl in core/modules/simpletest/src/WebTestBase.php
Passes if the internal browser's URL matches the given path.

... See full list

1 method overrides AssertContentTrait::getUrl()
TextFormatElementFormTest::getUrl in core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php
Get the current URL from the cURL handler.

File

core/tests/Drupal/KernelTests/AssertContentTrait.php, line 150

Class

AssertContentTrait
Provides test methods to assert content.

Namespace

Drupal\KernelTests

Code

protected function getUrl() {
    return isset($this->url) ? $this->url : 'no-url';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.