function PathWorkspacesTest::assertNotAccessiblePaths
Same name in other branches
- 9 core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php \Drupal\Tests\workspaces\Functional\PathWorkspacesTest::assertNotAccessiblePaths()
- 10 core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php \Drupal\Tests\workspaces\Functional\PathWorkspacesTest::assertNotAccessiblePaths()
- 11.x core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php \Drupal\Tests\workspaces\Functional\PathWorkspacesTest::assertNotAccessiblePaths()
Helper callback to verify paths are responding with status 404.
Parameters
string[] $paths: An array of paths to check for.
3 calls to PathWorkspacesTest::assertNotAccessiblePaths()
- PathWorkspacesTest::testPathAliases in core/
modules/ workspaces/ tests/ src/ Functional/ PathWorkspacesTest.php - Tests path aliases with workspaces.
- PathWorkspacesTest::testPathAliasesUserSwitch in core/
modules/ workspaces/ tests/ src/ Functional/ PathWorkspacesTest.php - Tests path aliases with workspaces and user switching.
- PathWorkspacesTest::testPathAliasesWithTranslation in core/
modules/ workspaces/ tests/ src/ Functional/ PathWorkspacesTest.php - Tests path aliases with workspaces for translatable nodes.
File
-
core/
modules/ workspaces/ tests/ src/ Functional/ PathWorkspacesTest.php, line 313
Class
- PathWorkspacesTest
- Tests path aliases with workspaces.
Namespace
Drupal\Tests\workspaces\FunctionalCode
protected function assertNotAccessiblePaths(array $paths) {
foreach ($paths as $path) {
$this->drupalGet($path);
$this->assertSession()
->statusCodeEquals(404);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.