You are here

public function PathValidatorTest::testIsValidWithNone in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithNone()
  2. 9 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithNone()

Tests the isValid() method for <none> (used for jumplinks).

@covers ::isValid

File

core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php, line 84

Class

PathValidatorTest
@coversDefaultClass \Drupal\Core\Path\PathValidator @group Routing

Namespace

Drupal\Tests\Core\Path

Code

public function testIsValidWithNone() {
  $this->accessAwareRouter
    ->expects($this
    ->never())
    ->method('match');
  $this
    ->assertTrue($this->pathValidator
    ->isValid('<none>'));
}