From 533bb68ca3651ca4b33daab312bd0e4a89fa72ce Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Tue, 3 Nov 2015 10:48:10 +0000 Subject: [PATCH] Issue #2606470 by alexpott: Symfony prevents container cloning in 2.8 - let's fix this early --- core/modules/simpletest/src/TestBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php index a4c115f10586..b255dea49542 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']; -- GitLab