public function SubPathautoFunctionalTest::testNonExistingPath in Sub-pathauto (Sub-path URL Aliases) 8
Ensures that non-existing paths are returning 404 page.
File
- tests/
src/ Functional/ SubPathautoFunctionalTest.php, line 96
Class
- SubPathautoFunctionalTest
- Class SubPathautoFunctionalTest.
Namespace
Drupal\Tests\subpathauto\FunctionalCode
public function testNonExistingPath() {
$this
->drupalGet('/kittens/are-faken');
$this
->assertSession()
->statusCodeEquals(404);
}