protected function AssertContentTrait::getUrl in Drupal 8
Same name and namespace in other branches
- 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.
10 calls to AssertContentTrait::getUrl()
- AssertContentTrait::parse in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Parse content returned from curlExec using DOM and SimpleXML.
- 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.
- WebTestBase::clickLinkHelper in core/
modules/ simpletest/ src/ WebTestBase.php - Provides a helper for ::clickLink() and ::clickLinkPartialName().
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\KernelTestsCode
protected function getUrl() {
return isset($this->url) ? $this->url : 'no-url';
}