diff --git a/core/modules/config_translation/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php index ecba4a2..3302729 100644 --- a/core/modules/config_translation/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/lib/Drupal/config_translation/Tests/ConfigTranslationUiTest.php @@ -108,7 +108,6 @@ public function testSiteInformationTranslationUi() { // Check translation tab exist. $this->assertLinkByHref($translation_base_url); - $this->drupalPlaceBlock('system_branding_block', array('region' => 'header_first')); $this->drupalGet($translation_base_url); // Check that the 'Edit' link in the source language links back to the @@ -145,6 +144,9 @@ public function testSiteInformationTranslationUi() { $this->assertFieldByName('config_names[system.site][name][translation]', $fr_site_name); $this->assertFieldByName('config_names[system.site][slogan][translation]', $fr_site_slogan); + // Place branding block with site name and slogan into header_first region. + $this->drupalPlaceBlock('system_branding_block', array('region' => 'header_first')); + // Check French translation of site name and slogan are in place. $this->drupalGet('fr'); $this->assertRaw($fr_site_name); diff --git a/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php b/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php index d95dae0..96f9566 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php @@ -107,6 +107,9 @@ function testTitleXSS() { ); $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration')); + // Place branding block with site name and slogan into header_first region. + $this->drupalPlaceBlock('system_branding_block', array('region' => 'header_first')); + // Load frontpage. $this->drupalGet('');