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
This commit is contained in:
parent
644632bec5
commit
f765605336
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user