From 3e8324be82fd9d2289b18d1debd80f46944388d3 Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Fri, 10 Jan 2025 13:10:35 +0000 Subject: [PATCH] Issue #3497481 by longwave: Remove unused UnitTestCase::getConfigStorageStub() --- core/tests/Drupal/Tests/UnitTestCase.php | 26 ------------------------ 1 file changed, 26 deletions(-) diff --git a/core/tests/Drupal/Tests/UnitTestCase.php b/core/tests/Drupal/Tests/UnitTestCase.php index 551b9984ad60..156b1e402040 100644 --- a/core/tests/Drupal/Tests/UnitTestCase.php +++ b/core/tests/Drupal/Tests/UnitTestCase.php @@ -138,32 +138,6 @@ public function getConfigFactoryStub(array $configs = []) { return $config_factory; } - /** - * Returns a stub config storage that returns the supplied configuration. - * - * @param array $configs - * An associative array of configuration settings whose keys are - * configuration object names and whose values are key => value arrays - * for the configuration object in question. - * - * @return \Drupal\Core\Config\StorageInterface - * A mocked config storage. - */ - public function getConfigStorageStub(array $configs) { - $config_storage = $this->createMock('Drupal\Core\Config\NullStorage'); - $config_storage->expects($this->any()) - ->method('listAll') - ->willReturn(array_keys($configs)); - - foreach ($configs as $name => $config) { - $config_storage->expects($this->any()) - ->method('read') - ->with($this->equalTo($name)) - ->willReturn($config); - } - return $config_storage; - } - /** * Returns a stub translation manager that just returns the passed string. * -- GitLab