diff --git a/core/modules/simpletest/src/BrowserTestBase.php b/core/modules/simpletest/src/BrowserTestBase.php index 3a3cfbe..1c11150 100644 --- a/core/modules/simpletest/src/BrowserTestBase.php +++ b/core/modules/simpletest/src/BrowserTestBase.php @@ -911,7 +911,7 @@ public function installDrupal() { // disk. This forces us to not accidently load the parent site. $container = $this->kernel->rebuildContainer(); - $config = $container->get('config.factory'); + $config_factory = $container->get('config.factory'); // Manually create and configure private and temporary files directories. // While these could be preset/enforced in settings.php like the public @@ -919,7 +919,7 @@ public function installDrupal() { // UI. If declared in settings.php, they would no longer be configurable. file_prepare_directory($this->privateFilesDirectory, FILE_CREATE_DIRECTORY); file_prepare_directory($this->tempFilesDirectory, FILE_CREATE_DIRECTORY); - $config->get('system.file') + $config_factory->getEditable('system.file') ->set('path.private', $this->privateFilesDirectory) ->set('path.temporary', $this->tempFilesDirectory) ->save(); @@ -928,7 +928,7 @@ public function installDrupal() { // tests from sending out emails and collect them in state instead. // While this should be enforced via settings.php prior to installation, // some tests expect to be able to test mail system implementations. - $config->get('system.mail') + $config_factory->getEditable('system.mail') ->set('interface.default', 'test_mail_collector') ->save(); @@ -936,10 +936,10 @@ public function installDrupal() { // environment optimizations for all tests to avoid needless overhead and // ensure a sane default experience for test authors. // @see https://drupal.org/node/2259167 - $config->get('system.logging') + $config_factory->getEditable('system.logging') ->set('error_level', 'verbose') ->save(); - $config->get('system.performance') + $config_factory->getEditable('system.performance') ->set('css.preprocess', FALSE) ->set('js.preprocess', FALSE) ->save();