Skip to content

Commit 10e0c39

Browse files
committed
Cleanup test attachment after assertions
1 parent 3ed8269 commit 10e0c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/webp-uploads/tests/test-load.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,5 +1084,7 @@ public function test_it_should_generate_fallback_images_for_all_sizes_when_gener
10841084
$this->assertImageHasSizeSource( $attachment_id, $size_name, 'image/jpeg' );
10851085
$this->assertImageHasSizeSource( $attachment_id, $size_name, $mime_type );
10861086
}
1087+
1088+
wp_delete_attachment( $attachment_id );
10871089
}
10881090
}

0 commit comments

Comments
 (0)