Changeset 60746 for branches/6.6
- Timestamp:
- 09/15/2025 07:22:09 PM (7 months ago)
- Location:
- branches/6.6
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/image/editorImagick.php (modified) (1 diff)
-
tests/phpunit/tests/image/resize.php (modified) (10 diffs)
-
tests/phpunit/tests/media.php (modified) (1 diff)
-
tools/local-env/scripts/install.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
- Property svn:mergeinfo changed
/trunk merged: 60735-60736
- Property svn:mergeinfo changed
-
branches/6.6/tests/phpunit/tests/image/editorImagick.php
r56559 r60746 657 657 } 658 658 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 659 664 $test_file = DIR_TESTDATA . '/images/test-alpha.pdf'; 660 665 $attachment_id = $this->factory->attachment->create_upload_object( $test_file ); -
branches/6.6/tests/phpunit/tests/image/resize.php
r57524 r60746 24 24 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.jpg', 25, 25 ); 25 25 26 $this->assertNotWPError( $image ); 27 26 28 list( $w, $h, $type ) = getimagesize( $image ); 27 29 … … 79 81 $image = $this->resize_helper( $file, 25, 25 ); 80 82 83 $this->assertNotWPError( $image ); 84 81 85 list( $w, $h, $type ) = wp_getimagesize( $image ); 82 86 … … 93 97 * 94 98 * @ticket 51228 99 * 100 * Temporarily disabled until we can figure out why it fails on the Trixie based PHP container. 101 * See https://core.trac.wordpress.org/ticket/63932. 102 * @requires PHP < 8.3 95 103 */ 96 104 public function test_resize_avif() { … … 105 113 $image = $this->resize_helper( $file, 25, 25 ); 106 114 115 $this->assertNotWPError( $image ); 116 107 117 list( $w, $h, $type ) = wp_getimagesize( $image ); 108 118 … … 126 136 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 96 ); 127 137 138 $this->assertNotWPError( $image ); 139 128 140 list( $w, $h, $type ) = getimagesize( $image ); 129 141 … … 139 151 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 0 ); 140 152 153 $this->assertNotWPError( $image ); 154 141 155 list( $w, $h, $type ) = getimagesize( $image ); 142 156 … … 152 166 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 0, 96 ); 153 167 168 $this->assertNotWPError( $image ); 169 154 170 list( $w, $h, $type ) = getimagesize( $image ); 155 171 … … 165 181 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 150, 150, true ); 166 182 183 $this->assertNotWPError( $image ); 184 167 185 list( $w, $h, $type ) = getimagesize( $image ); 168 186 … … 190 208 public function test_resize_thumb_50x150_crop() { 191 209 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 50, 150, true ); 210 211 $this->assertNotWPError( $image ); 192 212 193 213 list( $w, $h, $type ) = getimagesize( $image ); … … 215 235 /** 216 236 * Function to help out the tests 237 * 238 * @return string|WP_Error The path to the resized image file or a WP_Error on failure. 217 239 */ 218 240 protected function resize_helper( $file, $width, $height, $crop = false ) { -
branches/6.6/tests/phpunit/tests/media.php
r58862 r60746 5311 5311 // Sub-sizes: for each size, the JPEGs should be smaller than the WebP. 5312 5312 $sizes_to_compare = array_intersect_key( $jpeg_sizes['sizes'], $webp_sizes['sizes'] ); 5313 5314 $this->assertNotWPError( $sizes_to_compare ); 5315 5313 5316 foreach ( $sizes_to_compare as $size => $size_data ) { 5314 5317 $this->assertLessThan( $webp_sizes['sizes'][ $size ]['filesize'], $jpeg_sizes['sizes'][ $size ]['filesize'] ); -
branches/6.6/tools/local-env/scripts/install.js
r58097 r60746 38 38 wait_on( { resources: [ `tcp:localhost:${process.env.LOCAL_PORT}`] } ) 39 39 .then( () => { 40 wp_cli( 'db reset --yes ' );40 wp_cli( 'db reset --yes --defaults' ); 41 41 const installCommand = process.env.LOCAL_MULTISITE === 'true' ? 'multisite-install' : 'install'; 42 42 wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@test.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` );
Note: See TracChangeset
for help on using the changeset viewer.