diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php index aa57dec..4511346 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php @@ -56,6 +56,7 @@ function setUp() { $language = new Language(array('id' => static::LANGCODE)); language_save($language); + $this->resetAll(); } /** 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 b22fd90..d08817d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/PageTitleTest.php @@ -150,9 +150,10 @@ public function testRoutingTitle() { $this->assertEqual('Test dynamic title', (string) $result[0]); // Set some custom translated strings. - variable_set('locale_custom_strings_en', array('' => array( + $this->addCustomTranslations('en', array('' => array( 'Static title' => 'Static title translated' ))); + $this->writeCustomTranslations(); // Ensure that the title got translated. $this->drupalGet('test-page-static-title');