Skip to content
Snippets Groups Projects
Commit 802e1a0a authored by shalini_jha's avatar shalini_jha
Browse files

Issue #3486797: Added test coverage for workspace alias behaviour with language updates

parent b97a6681
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,9 @@ public function testPathAliasesWithTranslation(): void {
$this->assertAccessiblePaths([$default_path, $translation_path]);
// Verify the default alias is available in the live workspace.
$this->assertAccessiblePaths([$default_path]);
$this->switchToWorkspace($stage);
$this->assertAccessiblePaths([$default_path, $translation_path]);
......@@ -311,6 +314,20 @@ public function testPathAliasesWithTranslation(): void {
$stage->publish();
$this->assertAccessiblePaths([$default_path, $new_stage_translation_path]);
$this->assertNotAccessiblePaths([$stage_translation_path]);
// Switch back to Stage.
$this->switchToWorkspace($stage);
// Edit the path alias to set its language to "Not specified".
$alias_edit_path = "admin/config/search/path/edit/{$default_node->id()}";
$this->drupalGet($alias_edit_path);
$edit = [
'langcode[0][value]' => 'und', // Set the alias language to "Not specified".
];
$this->submitForm($edit, 'Save');
// Verify the path alias is still available in the Stage workspace.
$this->assertAccessiblePaths([$default_path]);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment