You are here

protected function AssertContentTrait::getUrl in Drupal 9

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

Get the current URL from the cURL handler.

Return value

string The current URL.

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 145

Class

AssertContentTrait
Provides test methods to assert content.

Namespace

Drupal\KernelTests

Code

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