Make WordPress Core


Ignore:
Timestamp:
09/15/2025 08:05:38 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Fix tooling and PHPUnit test issues.

This fixes the PHPUnit test suite for the 6.4 branch by:

  • Fixing issues with the env:install script when using newer PHP images.
  • Temporarily disables failing tests with ImageMagick 7 is in use.

Backports [60735] and [60736] to the 6.4 branch.

See #63876, #63932.

Location:
branches/6.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/tests/phpunit/tests/image/editorImagick.php

    r56559 r60749  
    657657        }
    658658
     659        $version = Imagick::getVersion();
     660        if ( $version['versionNumber'] < 0x675 ) {
     661            $this->markTestSkipped( 'The version of ImageMagick does not support removing alpha channels from PDFs.' );
     662        }
     663
    659664        $test_file     = DIR_TESTDATA . '/images/test-alpha.pdf';
    660665        $attachment_id = $this->factory->attachment->create_upload_object( $test_file );
Note: See TracChangeset for help on using the changeset viewer.