diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php index 875a2a2d90e7129ca6d1e987825a92500f5a8aeb..26478c4b78534f8396fa0610cda189a79bb5a492 100644 --- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php +++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php @@ -342,6 +342,8 @@ function testImageFieldDefaultImage() { // Add a default image to the public image field. $images = $this->drupalGetTestFiles('image'); + // $images[0] = image-test.png + // $images[2] = image-test.gif $alt = $this->randomString(512); $title = $this->randomString(1024); $edit = array( @@ -377,7 +379,7 @@ function testImageFieldDefaultImage() { // Create alt text for the image. $alt = $this->randomMachineName(); - $nid = $this->uploadNodeImage($images[1], $field_name, 'article', $alt); + $nid = $this->uploadNodeImage($images[2], $field_name, 'article', $alt); $node_storage->resetCache(array($nid)); $node = $node_storage->load($nid); $file = $node->{$field_name}->entity; @@ -412,7 +414,7 @@ function testImageFieldDefaultImage() { $this->createImageField($private_field_name, 'article', array('uri_scheme' => 'private')); // Add a default image to the new field. $edit = array( - 'files[settings_default_image_uuid]' => drupal_realpath($images[1]->uri), + 'files[settings_default_image_uuid]' => drupal_realpath($images[2]->uri), 'settings[default_image][alt]' => $alt, 'settings[default_image][title]' => $title, );