Make WordPress Core


Ignore:
Timestamp:
09/15/2025 07:15:41 PM (11 months ago)
Author:
desrosj
Message:

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

This fixes the PHPUnit test suite for the 6.8 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.8 branch.

See #63876, #63932.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

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

    r60030 r60744  
    702702         *
    703703         * @ticket 62285
     704         *
     705         * Temporarily disabled until we can figure out why it fails on the Trixie based PHP container.
     706         * See https://core.trac.wordpress.org/ticket/63932.
     707         * @requires PHP < 8.3
    704708         */
    705709        public function test_image_max_bit_depth() {
     
    774778        public function test_resizes_are_small_for_16bit_images( $file ) {
    775779
     780                // Temporarily disabled. See https://core.trac.wordpress.org/ticket/63932.
     781                if ( DIR_TESTDATA . '/images/png-tests/test8.png' === $file ) {
     782                        $version = Imagick::getVersion();
     783                        if ( $version['versionNumber'] >= 0x700 ) {
     784                                $this->markTestSkipped( 'ImageMagick 7 is unable to optimize grayscale images with 1-bit transparency.' );
     785                        }
     786                }
     787
    776788                $temp_file = DIR_TESTDATA . '/images/test-temp.png';
    777789
Note: See TracChangeset for help on using the changeset viewer.