From 143f9464c25d32f43db9a41387f5624c1fb940d5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 28 Oct 2022 14:47:13 +0000 Subject: [PATCH] Tests: Move `dbDelta()` tests to the `db` directory. This aims to bring some consistency with other database-related tests. Includes adding a missing `@covers` tag to the class DocBlock. Follow-up to [30345], [32108], [32770], [51798]. Props pbearne, SergeyBiryukov. See #56793, #56782. git-svn-id: https://develop.svn.wordpress.org/trunk@54711 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/{dbdelta.php => db/dbDelta.php} | 4 +++- tests/phpunit/tests/db/realEscape.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) rename tests/phpunit/tests/{dbdelta.php => db/dbDelta.php} (99%) diff --git a/tests/phpunit/tests/dbdelta.php b/tests/phpunit/tests/db/dbDelta.php similarity index 99% rename from tests/phpunit/tests/dbdelta.php rename to tests/phpunit/tests/db/dbDelta.php index c9e20d966b..6667f9aba3 100644 --- a/tests/phpunit/tests/dbdelta.php +++ b/tests/phpunit/tests/db/dbDelta.php @@ -5,8 +5,10 @@ * * @group upgrade * @group dbdelta + * + * @covers ::dbDelta */ -class Tests_dbDelta extends WP_UnitTestCase { +class Tests_DB_dbDelta extends WP_UnitTestCase { /** * The maximum size of an index with utf8mb4 collation and charset with a standard diff --git a/tests/phpunit/tests/db/realEscape.php b/tests/phpunit/tests/db/realEscape.php index 19d3333e85..fc9a9c87aa 100644 --- a/tests/phpunit/tests/db/realEscape.php +++ b/tests/phpunit/tests/db/realEscape.php @@ -3,7 +3,8 @@ /** * Test WPDB _real_escape() method. * - * @group wpdb + * @group wpdb + * * @covers wpdb::_real_escape */ class Tests_DB_RealEscape extends WP_UnitTestCase {