From 096878791ebd1907dee35cc5348f28c7c7c039aa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Jan 2023 10:47:19 +0000 Subject: [PATCH] Tests: Use correct variable in `_fake_download_url_non_200_response_code()`. Follow-up to [55029]. See #56793. git-svn-id: https://develop.svn.wordpress.org/trunk@55031 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/admin/includesFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/admin/includesFile.php b/tests/phpunit/tests/admin/includesFile.php index f94d54a566..5ff28ba90c 100644 --- a/tests/phpunit/tests/admin/includesFile.php +++ b/tests/phpunit/tests/admin/includesFile.php @@ -69,7 +69,7 @@ class Tests_Admin_IncludesFile extends WP_UnitTestCase { } public function _fake_download_url_non_200_response_code( $response, $parsed_args, $url ) { - file_put_contents( $args['filename'], 'This is an unexpected error message from your favorite server.' ); + file_put_contents( $parsed_args['filename'], 'This is an unexpected error message from your favorite server.' ); return array( 'response' => array( 'code' => 418,