From 9fd3f595b18838f565d6cef8aa3f8b7db6921168 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Feb 2021 17:09:39 +0000 Subject: [PATCH] Tests: Add missing `@covers` tags for files in `phpunit/tests/link/`. Props sephsekla, jrf. See #39265. git-svn-id: https://develop.svn.wordpress.org/trunk@50454 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/link/getAdjacentPostLink.php | 3 +++ tests/phpunit/tests/link/getDashboardUrl.php | 1 + .../tests/link/getPostCommentsFeedLink.php | 1 + .../phpunit/tests/link/getPostTypeArchiveLink.php | 1 + .../tests/link/{adminUrl.php => selfAdminUrl.php} | 3 ++- tests/phpunit/tests/link/themeFile.php | 15 +++++++++++++++ 6 files changed, 23 insertions(+), 1 deletion(-) rename tests/phpunit/tests/link/{adminUrl.php => selfAdminUrl.php} (93%) diff --git a/tests/phpunit/tests/link/getAdjacentPostLink.php b/tests/phpunit/tests/link/getAdjacentPostLink.php index 6f5d5168aa..55ea5445ef 100644 --- a/tests/phpunit/tests/link/getAdjacentPostLink.php +++ b/tests/phpunit/tests/link/getAdjacentPostLink.php @@ -2,6 +2,9 @@ /** * @group link + * @covers ::get_adjacent_post_link + * @covers ::get_next_post_link + * @covers ::get_previous_post_link */ class Tests_Link_GetAdjacentPostLink extends WP_UnitTestCase { diff --git a/tests/phpunit/tests/link/getDashboardUrl.php b/tests/phpunit/tests/link/getDashboardUrl.php index 193039eccc..dafaa7b62e 100644 --- a/tests/phpunit/tests/link/getDashboardUrl.php +++ b/tests/phpunit/tests/link/getDashboardUrl.php @@ -2,6 +2,7 @@ /** * @group link + * @covers ::get_dashboard_url */ class Tests_Link_GetDashboardUrl extends WP_UnitTestCase { public static $user_id = false; diff --git a/tests/phpunit/tests/link/getPostCommentsFeedLink.php b/tests/phpunit/tests/link/getPostCommentsFeedLink.php index c905ff08cf..4b8ffdc33c 100644 --- a/tests/phpunit/tests/link/getPostCommentsFeedLink.php +++ b/tests/phpunit/tests/link/getPostCommentsFeedLink.php @@ -1,6 +1,7 @@