Skip to content

Commit 588de63

Browse files
Update tests/phpunit/tests/rest-api/rest-attachments-controller.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 653c1db commit 588de63

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/phpunit/tests/rest-api/rest-attachments-controller.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3000,8 +3000,6 @@ public function test_upload_unsupported_image_type_enforced_when_generating_sub_
30003000
$controller = new WP_REST_Attachments_Controller( 'attachment' );
30013001
$result = $controller->create_item_permissions_check( $request );
30023002

3003-
remove_filter( 'wp_image_editors', '__return_empty_array' );
3004-
30053003
// Should fail because the server needs to generate sub-sizes but can't.
30063004
$this->assertWPError( $result );
30073005
$this->assertSame( 'rest_upload_image_type_not_supported', $result->get_error_code() );

0 commit comments

Comments
 (0)