diff --git a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php index 32b44c2..4a7d402 100644 --- a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php +++ b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php @@ -43,6 +43,7 @@ function testFileConfigurationPage() { // With locale module installed, the setting should appear. $module_installer = $this->container->get('module_installer'); $module_installer->install(['locale']); + $this->rebuildContainer(); $this->drupalGet('admin/config/media/file-system'); $this->assertFieldByName('translation_path'); @@ -54,7 +55,7 @@ function testFileConfigurationPage() { $this->drupalPostForm(NULL, $fields, t('Save configuration')); $this->drupalGet('admin/config/media/file-system'); $this->assertFieldByName('translation_path', $translation_path); - $this->assertEqual($translation_path, \Drupal::configFactory()->reset()->get('locale.settings')->get('translation.path')); + $this->assertEqual($translation_path, $this->config('locale.settings')->get('translation.path')); } }