diff --git a/tests/phpunit/tests/admin/includesFile.php b/tests/phpunit/tests/admin/includesFile.php index 7955e10a75..b598a2d3bd 100644 --- a/tests/phpunit/tests/admin/includesFile.php +++ b/tests/phpunit/tests/admin/includesFile.php @@ -102,7 +102,20 @@ class Tests_Admin_IncludesFile extends WP_UnitTestCase { } /** - * @ticket #55109 + * Data provider for test_download_url_should_respect_filename_from_content_disposition_header. + * + * @return array + */ + public function data_download_url_should_respect_filename_from_content_disposition_header() { + return array( + 'valid parameters' => array( 'filter_content_disposition_header_with_filename' ), + 'path traversal' => array( 'filter_content_disposition_header_with_filename_with_path_traversal' ), + 'no quotes' => array( 'filter_content_disposition_header_with_filename_without_quotes' ), + ); + } + + /** + * @ticket 55109 * @dataProvider data_save_to_temp_directory_when_getting_filename_from_content_disposition_header * * @covers ::download_url @@ -119,19 +132,6 @@ class Tests_Admin_IncludesFile extends WP_UnitTestCase { remove_filter( 'pre_http_request', array( $this, $filter ) ); } - /** - * Data provider for test_download_url_should_respect_filename_from_content_disposition_header. - * - * @return array - */ - public function data_download_url_should_respect_filename_from_content_disposition_header() { - return array( - 'valid parameters' => array( 'filter_content_disposition_header_with_filename' ), - 'path traversal' => array( 'filter_content_disposition_header_with_filename_with_path_traversal' ), - 'no quotes' => array( 'filter_content_disposition_header_with_filename_without_quotes' ), - ); - } - /** * Data provider for test_save_to_temp_directory_when_getting_filename_from_content_disposition_header. *