function PathValidatorTest::testIsValidWithInvalidExternalUrl
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithInvalidExternalUrl()
- 10 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithInvalidExternalUrl()
- 11.x core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithInvalidExternalUrl()
Tests the isValid() method with an invalid external URL.
@covers ::isValid
File
-
core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php, line 108
Class
- PathValidatorTest
- @coversDefaultClass \Drupal\Core\Path\PathValidator @group Routing
Namespace
Drupal\Tests\Core\PathCode
public function testIsValidWithInvalidExternalUrl() {
$this->accessAwareRouter
->expects($this->never())
->method('match');
$this->assertFalse($this->pathValidator
->isValid('http://'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.