From 865b8ac0652497920602430e562a8dd248064574 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 11 Oct 2022 14:25:47 +0000 Subject: [PATCH] Tests: Relocate the tests for recommended PHP, MySQL, and MariaDB versions. This commit moves the tests for recommended versions of dependencies referenced in `readme.html` to a new location for better context. Also updates test class name for clarity, and `@covers` annotations to `@coversNothing`. Follow-up to [26166], [33946], [35172], [52418], [52424]. Props ironprogrammer, bbobnis, antonvlasenko, azaozz, chaion07, priyomukul. Fixes #45867. git-svn-id: https://develop.svn.wordpress.org/trunk@54479 602fd350-edb4-49c9-b593-d223f7449a82 --- .../{external-http/basic.php => readme.php} | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) rename tests/phpunit/tests/{external-http/basic.php => readme.php} (91%) diff --git a/tests/phpunit/tests/external-http/basic.php b/tests/phpunit/tests/readme.php similarity index 91% rename from tests/phpunit/tests/external-http/basic.php rename to tests/phpunit/tests/readme.php index 7ecc8713cc..f0068d821e 100644 --- a/tests/phpunit/tests/external-http/basic.php +++ b/tests/phpunit/tests/readme.php @@ -1,13 +1,14 @@ markTestSkipped( @@ -29,9 +30,7 @@ class Tests_External_HTTP_Basic extends WP_UnitTestCase { } /** - * @covers ::wp_remote_get - * @covers ::wp_remote_retrieve_response_code - * @covers ::wp_remote_retrieve_body + * @coversNothing */ public function test_readme_mysql_version() { // This test is designed to only run on trunk. @@ -62,9 +61,7 @@ class Tests_External_HTTP_Basic extends WP_UnitTestCase { } /** - * @covers ::wp_remote_get - * @covers ::wp_remote_retrieve_response_code - * @covers ::wp_remote_retrieve_body + * @coversNothing */ public function test_readme_mariadb_version() { // This test is designed to only run on trunk.