function PathValidatorTest::testIsValidWithFrontpage

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithFrontpage()
  2. 10 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithFrontpage()
  3. 9 core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithFrontpage()
  4. 8.9.x core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php \Drupal\Tests\Core\Path\PathValidatorTest::testIsValidWithFrontpage()

Tests the isValid() method for the frontpage.

File

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

Class

PathValidatorTest
Tests Drupal\Core\Path\PathValidator.

Namespace

Drupal\Tests\Core\Path

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.