Make WordPress Core

Ticket #38574: 38574.diff

File 38574.diff, 613 bytes (added by jnylen0, 8 years ago)
  • tests/phpunit/tests/rest-api/rest-attachments-controller.php

    diff --git a/tests/phpunit/tests/rest-api/rest-attachments-controller.php b/tests/phpunit/tests/rest-api/rest-attachments-controller.php
    index 0f43bf3..1b77d8a 100644
    a b class WP_Test_REST_Attachments_Controller extends WP_Test_REST_Post_Type_Control 
    849849                if ( file_exists( $this->test_file2 ) ) {
    850850                        unlink( $this->test_file2 );
    851851                }
     852                $this->remove_added_uploads();
    852853        }
    853854
    854855        protected function check_post_data( $attachment, $data, $context = 'view', $links ) {