From f76560533664177aea1874d73d1d298cb48d3151 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 29 Sep 2015 17:47:24 +0000 Subject: [PATCH] Cleanup image size in unit tests This helps prevent test leakage that can cause Tests_Media::test_add_image_size to break. See #33968 git-svn-id: https://develop.svn.wordpress.org/trunk@34694 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/media.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index af1c2517b8..d51eb92b92 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -501,6 +501,7 @@ VIDEO; $this->assertArrayHasKey( 'test-size', $_wp_additional_image_sizes ); $this->assertEquals( 200, $_wp_additional_image_sizes['test-size']['width'] ); $this->assertEquals( 600, $_wp_additional_image_sizes['test-size']['height'] ); + remove_image_size( 'test-size' ); } /** @@ -519,6 +520,7 @@ VIDEO; function test_has_image_size() { add_image_size( 'test-size', 200, 600 ); $this->assertTrue( has_image_size( 'test-size' ) ); + remove_image_size( 'test-size' ); } /**