diff --git a/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php index 5ac6335..2c09e45 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php @@ -8,7 +8,6 @@ namespace Drupal\system\Tests\Image; use Drupal\simpletest\WebTestBase; -use Drupal\system\Plugin\ImageToolkitManager; /** * Base class for image manipulation testing. @@ -47,8 +46,7 @@ function setUp() { parent::setUp(); // Use the image_test.module's test toolkit. - $manager = new ImageToolkitManager($this->container->get('container.namespaces'), $this->container->get('module_handler'), $this->container->get('cache.cache'), $this->container->get('language_manager')); - $this->toolkit = $manager->createInstance('test'); + $this->toolkit = $this->container->get('image.toolkit.manager')->createInstance('test'); // Pick a file for testing. $file = current($this->drupalGetTestFiles('image'));