diff --git a/core/modules/block/src/Tests/BlockLanguageTest.php b/core/modules/block/src/Tests/BlockLanguageTest.php index d8e9f18..c3f87a1 100644 --- a/core/modules/block/src/Tests/BlockLanguageTest.php +++ b/core/modules/block/src/Tests/BlockLanguageTest.php @@ -149,6 +149,10 @@ public function testMultipleLanguageTypes() { $this->drupalGet('node', ['query' => ['language' => 'fr']]); $this->assertText('Powered by Drupal', 'The body of the block appears on the page.'); + // Re-login in order to clear the interface language stored in the session. + $this->drupalLogout(); + $this->drupalLogin($this->adminUser); + // Content language does not depend on session/request arguments. // It will fall back on English (site default) and not display the block. $this->drupalGet('en');