Images from simpletest module used in ImageFieldTest should be replaced

Created on 14 May 2019, over 5 years ago
Updated 16 May 2023, over 1 year ago

I'm not sure when, but I believe at some point in the future the core simpletest module will be removed. So we should replace these images in ImageFieldTest:

 $file_too_big = $root . '/core/modules/simpletest/files/image-2.jpg';
 $file_just_right = $root . '/core/modules/simpletest/files/image-test.jpg';
πŸ› Bug report
Status

Needs review

Version

2.0

Component

Tests

Created by

πŸ‡ΊπŸ‡ΈUnited States oknate Greater New York City Area

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom schillerm

    Hi I agree with Akhil,

    I just checked, ImageFieldTest.php in 8.x-2.9 and 8.x-2.x-dev has the following ..

     foreach ($test_files as $test_file) {
          if ($test_file->filename === 'image-test.jpg') {
            $file_just_right = $file_system->realpath($test_file->uri);
          }
          elseif ($test_file->filename === 'image-2.jpg') {
            $file_too_big = $file_system->realpath($test_file->uri);
          }
        }
Production build 0.71.5 2024