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_gd.php

    r29120 r47331  
    2323                parent::setUp();
    2424        }
     25
     26        /**
     27         * Try resizing a php file (bad image)
     28         * @ticket 6821
     29         */
     30        public function test_resize_bad_image() {
     31
     32                $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );
     33                $this->assertInstanceOf( 'WP_Error', $image );
     34                $this->assertEquals( 'invalid_image', $image->get_error_code() );
     35        }
     36
    2537}
Note: See TracChangeset for help on using the changeset viewer.