diff --git a/core/tests/Drupal/Tests/UnitTestCase.php b/core/tests/Drupal/Tests/UnitTestCase.php index 551b9984ad60b5f386cb5982dddf8ef529045ab4..156b1e40204047688149cabde95eeb30c5b6547e 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. *