Make WordPress Core


Ignore:
Timestamp:
02/20/2020 05:43:23 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Merge some test fixes to the 4.0 branch, for consistency with other branches.

This backports [30518], [30520], [30526], [31253-31254], [31257].

See #49485.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/tests/phpunit/tests/image/resize.php

    r29120 r47331  
    139139
    140140        /**
    141          * Try resizing a php file (bad image)
    142          * @ticket 6821
    143          */
    144         public function test_resize_bad_image() {
    145                 $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );
    146                 $this->assertInstanceOf( 'WP_Error', $image );
    147                 $this->assertEquals( 'invalid_image', $image->get_error_code() );
    148         }
    149 
    150 
    151         /**
    152141         * Function to help out the tests
    153142         */
Note: See TracChangeset for help on using the changeset viewer.