Make WordPress Core


Ignore:
Timestamp:
09/15/2025 07:15:41 PM (13 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/media.php

    r60420 r60744  
    54365436                // Sub-sizes: for each size, the JPEGs should be smaller than the WebP.
    54375437                $sizes_to_compare = array_intersect_key( $jpeg_sizes['sizes'], $webp_sizes['sizes'] );
     5438
     5439                $this->assertNotWPError( $sizes_to_compare );
     5440
    54385441                foreach ( $sizes_to_compare as $size => $size_data ) {
    54395442                        $this->assertLessThan( $webp_sizes['sizes'][ $size ]['filesize'], $jpeg_sizes['sizes'][ $size ]['filesize'] );
    … …  
    54785481                // Sub-sizes: for each size, the AVIF should be smaller than the JPEG.
    54795482                $sizes_to_compare = array_intersect_key( $avif_sizes['sizes'], $smaller_avif_sizes['sizes'] );
     5483
     5484                $this->assertNotWPError( $sizes_to_compare );
    54805485
    54815486                foreach ( $sizes_to_compare as $size => $size_data ) {
Note: See TracChangeset for help on using the changeset viewer.