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)
3 merge requests!1627Issue #3082958: Add gitignore(s) to composer-ready project templates,!1014Issue #3226806: Move filter implementations from filter.module to plugin classes,!939Issue #2971209: Allow the MediaLibraryUiBuilder service to use an alternative view display
$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.