diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php index a4c115f10586483084649370608806c8e076ed5e..b255dea49542b4353824b95c470c8044ac08136f 100644 --- a/core/modules/simpletest/src/TestBase.php +++ b/core/modules/simpletest/src/TestBase.php @@ -1194,7 +1194,7 @@ private function prepareEnvironment() { $this->originalConf = isset($GLOBALS['conf']) ? $GLOBALS['conf'] : NULL; // Backup statics and globals. - $this->originalContainer = clone \Drupal::getContainer(); + $this->originalContainer = \Drupal::getContainer(); $this->originalLanguage = $language_interface; $this->originalConfigDirectories = $GLOBALS['config_directories'];