class UrlValidatorTest

Same name in this branch

Tests URL validation by valid_url().

Hierarchy

Expanded class hierarchy of UrlValidatorTest

File

drupal/core/tests/Drupal/Tests/Core/Common/UrlValidatorTest.php, line 17
Contains \Drupal\Tests\Core\Common\UrlValidatorTest.

Namespace

Drupal\Tests\Core\Common
View source

Members

Namesort descending Modifiers Type Description Overrides
UnitTestCase::getConfigFactoryStub public function Returns a stub config factory that behaves according to the passed in array.
UnitTestCase::getConfigStorageStub public function Returns a stub config storage that returns the supplied configuration.
UnitTestCase::randomName public static function Generates a random string containing letters and numbers.
UrlValidatorTest::dataEnhanceWithPrefix protected function Enhances test urls with prefixes.
UrlValidatorTest::dataEnhanceWithScheme protected function Enhances test urls with schemes
UrlValidatorTest::getInfo public static function This method exists to support the simpletest UI runner. Overrides UnitTestCase::getInfo
UrlValidatorTest::providerTestInvalidAbsolute public function Provides invalid absolute URLs.
UrlValidatorTest::providerTestInvalidRelativeData public function Provides invalid relative URLs.
UrlValidatorTest::providerTestValidAbsoluteData public function Data provider for absolute URLs.
UrlValidatorTest::providerTestValidRelativeData public function Provides valid relative URLs
UrlValidatorTest::testInvalidAbsolute public function Tests invalid absolute URLs.
UrlValidatorTest::testInvalidRelative public function Tests invalid relative URLs.
UrlValidatorTest::testValidAbsolute public function Tests valid absolute URLs.
UrlValidatorTest::testValidRelative public function Tests valid relative URLs.