protected function PathWorkspacesTest::assertAccessiblePaths in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php \Drupal\Tests\workspaces\Functional\PathWorkspacesTest::assertAccessiblePaths()
Helper callback to verify paths are responding with status 200.
Parameters
string[] $paths: An array of paths to check for.
3 calls to PathWorkspacesTest::assertAccessiblePaths()
- 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 309
Class
- PathWorkspacesTest
- Tests path aliases with workspaces.
Namespace
Drupal\Tests\workspaces\FunctionalCode
protected function assertAccessiblePaths(array $paths) {
foreach ($paths as $path) {
$this
->drupalGet($path);
$this
->assertSession()
->statusCodeEquals(200);
}
}