WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/29/2015 05:47:24 PM (6 years ago)
Author:
jorbin
Message:

Cleanup image size in unit tests

This helps prevent test leakage that can cause Tests_Media::test_add_image_size to break.

See #33968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/media.php

    r34372 r34694  
    502502        $this->assertEquals( 200, $_wp_additional_image_sizes['test-size']['width'] );
    503503        $this->assertEquals( 600, $_wp_additional_image_sizes['test-size']['height'] );
     504        remove_image_size( 'test-size' );
    504505    }
    505506
     
    520521        add_image_size( 'test-size', 200, 600 );
    521522        $this->assertTrue( has_image_size( 'test-size' ) );
     523        remove_image_size( 'test-size' );
    522524    }
    523525
Note: See TracChangeset for help on using the changeset viewer.