commit 117955fd9b6d8532f9ec8da3324b3f426b275778 Author: Matthew Radcliffe Date: Sat Aug 17 13:15:28 2013 -0500 Issue #2049465 by andypost: Use container for config_factory instead of \Drupal::config() per meta issue. diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/ImageUpgradePathTest.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/ImageUpgradePathTest.php index 2ff1623..a0cfddf 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/ImageUpgradePathTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/ImageUpgradePathTest.php @@ -73,8 +73,9 @@ public function testImageStyleUpgrade() { ), ), ); + $config_factory = $this->container->get('config.factory'); foreach ($expected_styles as $name => $style) { - $configured_style = \Drupal::config('image.style.' . $name)->get(); + $configured_style = $config_factory->get('image.style.' . $name)->get(); // Replace placeholder with image effect name keys with UUID's generated // during by the image style upgrade functions. foreach ($configured_style['effects'] as $uuid => $effect) {