REST API: Delete temporary files during teardown of `WP_Test_REST_Attachments_Controller`.

Props jnylen0.
Fixes #38574.

git-svn-id: https://develop.svn.wordpress.org/trunk@39041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Rachel Baker 2016-10-30 23:31:06 +00:00
parent f4b61df0e4
commit 6413c1efce
1 changed files with 2 additions and 0 deletions

View File

@ -849,6 +849,8 @@ class WP_Test_REST_Attachments_Controller extends WP_Test_REST_Post_Type_Control
if ( file_exists( $this->test_file2 ) ) {
unlink( $this->test_file2 );
}
$this->remove_added_uploads();
}
protected function check_post_data( $attachment, $data, $context = 'view', $links ) {