Issue #3348592 by alexpott, kunal_sahu, joseph.olstad, catch, larowlan,...
Issue #3348592 by alexpott, kunal_sahu, joseph.olstad, catch, larowlan, amaria, james.williams, longwave: [regression] Language switcher block throws exception when no route is matched
(cherry picked from commit fca42b9d)
5 merge requests!8506Draft: Issue #3456536 by ibrahim tameme,!5646Issue #3350972 by nod_: [random test failure]...,!5600Issue #3350972 by nod_: [random test failure]...,!5343Issue #3305066 by quietone, Rename RedirectLeadingSlashesSubscriber,!3603#ISSUE 3346218 Add a different message on edit comment
$this->assertSame($expected_list_items,$list_items,'The list items have the correct attributes that will allow the drupal.active-link library to mark them as active.');
$this->assertSame($expected_anchors,$anchors,'The anchors have the correct attributes that will allow the drupal.active-link library to mark them as active.');
$this->assertSame(['English','français'],$labels,'The language links labels are in their own language on the language switcher block.');
}
/**
* Tests language switcher links for domain based negotiation.
*/
...
...
@@ -439,6 +500,120 @@ public function testLanguageSessionSwitchLinks() {
$this->assertSession()->addressEquals('user/2');
}
/**
* Test that the language switching block does not expose restricted paths.