diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php index 534b83e..4f8514f 100644 --- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php +++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php @@ -350,6 +350,7 @@ function testImageFieldDefaultImage() { $nid = $this->uploadNodeImage($images[1], $field_name, 'article'); $node_storage->resetCache(array($nid)); $node = $node_storage->load($nid); + $file_storage = $this->container->get('entity.manager')->getStorage('file'); $image = array( '#theme' => 'image', '#uri' => $file_storage->load($node->{$field_name}->target_id)->getFileUri(),