function PathValidatorTest::testIsValidWithExternalUrl
Tests the isValid() method for an external URL.
@legacy-covers ::isValid
File
-
core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php, line 102
Class
Namespace
Drupal\Tests\Core\PathCode
public function testIsValidWithExternalUrl() : void {
$this->accessAwareRouter
->expects($this->never())
->method('match');
$this->assertTrue($this->pathValidator
->isValid('https://www.drupal.org'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.