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)
$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.
*/
@@ -445,6 +506,120 @@ public function testLanguageSessionSwitchLinks() {
$this->assertSession()->addressEquals('user/2');
}
/**
* Test that the language switching block does not expose restricted paths.