diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php index f56854c..4258f80 100644 --- a/core/modules/simpletest/src/TestBase.php +++ b/core/modules/simpletest/src/TestBase.php @@ -25,7 +25,11 @@ use SessionTestTrait; use RandomGeneratorTrait; use AssertHelperTrait; - use ConfigTestTrait; + // For backwards compatibility switch the visbility of the methods to public. + use ConfigTestTrait { + configImporter as public; + copyConfig as public; + } /** * The test run ID. diff --git a/core/tests/Drupal/Tests/ConfigTestTrait.php b/core/tests/Drupal/Tests/ConfigTestTrait.php index a1b618b..330ff47 100644 --- a/core/tests/Drupal/Tests/ConfigTestTrait.php +++ b/core/tests/Drupal/Tests/ConfigTestTrait.php @@ -49,7 +49,7 @@ protected function configImporter() { * @param \Drupal\Core\Config\StorageInterface $target_storage * The target config storage service. */ - public function copyConfig(StorageInterface $source_storage, StorageInterface $target_storage) { + protected function copyConfig(StorageInterface $source_storage, StorageInterface $target_storage) { $target_storage->deleteAll(); foreach ($source_storage->listAll() as $name) { $target_storage->write($name, $source_storage->read($name));