Changeset 60749 for branches/6.4
- Timestamp:
- 09/15/2025 08:05:38 PM (2 months ago)
- Location:
- branches/6.4
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/image/editorImagick.php (modified) (1 diff)
-
tests/phpunit/tests/image/resize.php (modified) (8 diffs)
-
tests/phpunit/tests/media.php (modified) (1 diff)
-
tools/local-env/scripts/install.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
- Property svn:mergeinfo changed
/trunk merged: 60735-60736
- Property svn:mergeinfo changed
-
branches/6.4/tests/phpunit/tests/image/editorImagick.php
r56559 r60749 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.4/tests/phpunit/tests/image/resize.php
r54226 r60749 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 … … 100 104 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 96 ); 101 105 106 $this->assertNotWPError( $image ); 107 102 108 list( $w, $h, $type ) = getimagesize( $image ); 103 109 … … 113 119 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 128, 0 ); 114 120 121 $this->assertNotWPError( $image ); 122 115 123 list( $w, $h, $type ) = getimagesize( $image ); 116 124 … … 126 134 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 0, 96 ); 127 135 136 $this->assertNotWPError( $image ); 137 128 138 list( $w, $h, $type ) = getimagesize( $image ); 129 139 … … 139 149 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 150, 150, true ); 140 150 151 $this->assertNotWPError( $image ); 152 141 153 list( $w, $h, $type ) = getimagesize( $image ); 142 154 … … 164 176 public function test_resize_thumb_50x150_crop() { 165 177 $image = $this->resize_helper( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG', 50, 150, true ); 178 179 $this->assertNotWPError( $image ); 166 180 167 181 list( $w, $h, $type ) = getimagesize( $image ); … … 189 203 /** 190 204 * Function to help out the tests 205 * 206 * @return string|WP_Error The path to the resized image file or a WP_Error on failure. 191 207 */ 192 208 protected function resize_helper( $file, $width, $height, $crop = false ) { -
branches/6.4/tests/phpunit/tests/media.php
r57020 r60749 5285 5285 // Sub-sizes: for each size, the JPEGs should be smaller than the WebP. 5286 5286 $sizes_to_compare = array_intersect_key( $jpeg_sizes['sizes'], $webp_sizes['sizes'] ); 5287 5288 $this->assertNotWPError( $sizes_to_compare ); 5289 5287 5290 foreach ( $sizes_to_compare as $size => $size_data ) { 5288 5291 $this->assertLessThan( $webp_sizes['sizes'][ $size ]['filesize'], $jpeg_sizes['sizes'][ $size ]['filesize'] ); -
branches/6.4/tools/local-env/scripts/install.js
r58276 r60749 37 37 wait_on( { resources: [ `tcp:localhost:${process.env.LOCAL_PORT}`] } ) 38 38 .then( () => { 39 wp_cli( 'db reset --yes ' );39 wp_cli( 'db reset --yes --defaults' ); 40 40 wp_cli( `core install --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@test.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` ); 41 41 } );
Note: See TracChangeset
for help on using the changeset viewer.