public function PathValidatorTest::testIsValidWithExternalUrl in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithExternalUrl()
 
Tests the isValid() method for an external URL.
@covers ::isValid
File
- core/
tests/ Drupal/ Tests/ Core/ Path/ PathValidatorTest.php, line 96  
Class
- PathValidatorTest
 - @coversDefaultClass \Drupal\Core\Path\PathValidator @group Routing
 
Namespace
Drupal\Tests\Core\PathCode
public function testIsValidWithExternalUrl() {
  $this->accessAwareRouter
    ->expects($this
    ->never())
    ->method('match');
  $this
    ->assertTrue($this->pathValidator
    ->isValid('https://www.drupal.org'));
}