Make WordPress Core


Ignore:
Timestamp:
02/08/2021 08:57:54 PM (6 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport the local Docker environment to the 3.8 branch.

This commit introduces the Docker-based local WordPress development environment to the 3.8 branch.

Merges [44176,45445,45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49267,49335,49358,49360,49362] to the 3.8 branch.
See #48301, #47767.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/tests/phpunit/tests/image/editor_gd.php

    r47338 r50250  
    3333        /**
    3434         * Check support for GD compatible mime types.
    35          * 
     35         *
    3636         */
    3737        public function test_supports_mime_type() {
     
    4545        /**
    4646         * Test resizing an image, not using crop
    47          * 
     47         *
    4848         */
    4949        public function test_resize() {
     
    6161        /**
    6262         * Test resizing an image including cropping
    63          * 
     63         *
    6464         */
    6565        public function test_resize_and_crop() {
     
    133133        /**
    134134         * Test the image created with WP_Image_Edior_GD preserves alpha when resizing
    135          * 
     135         *
    136136         * @ticket 23039
    137137         */
     
    144144                $editor->resize(5,5);
    145145                $save_to_file = tempnam( get_temp_dir(), '' ) . '.png';
    146                
     146
    147147                $editor->save( $save_to_file );
    148148
    149                 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
     149                $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 );
    150150
    151151                unlink( $save_to_file );
    152152        }
    153        
     153
    154154        /**
    155155         * Test the image created with WP_Image_Edior_GD preserves alpha with no resizing etc
    156          * 
     156         *
    157157         * @ticket 23039
    158158         */
     
    165165
    166166                $save_to_file = tempnam( get_temp_dir(), '' ) . '.png';
    167                
     167
    168168                $editor->save( $save_to_file );
    169169
    170                 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
     170                $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 );
    171171
    172172                unlink( $save_to_file );
Note: See TracChangeset for help on using the changeset viewer.