You are here

public function PathValidatorTest::testIsValidWithFrontpage in Drupal 8

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

Tests the isValid() method for the frontpage.

@covers ::isValid

File

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

Class

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

Namespace

Drupal\Tests\Core\Path

Code

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