From 427f1676af8caedf7efbf74bbc1ac374ce0f4164 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 1 Sep 2022 16:21:46 +0000 Subject: [PATCH] Tests: Correct the `@covers` tags in `WP::send_headers()` tests for feeds. As this is a class method and not a global function, the correct annotation syntax is `@covers WP::send_headers`. Follow-up to [53233]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54050 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/feed/rss2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index f6e33c5b10..0d8d655c95 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -515,7 +515,7 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase { * * @ticket 47968 * - * @covers ::send_headers + * @covers WP::send_headers */ public function test_feed_last_modified_should_be_a_post_date_when_withcomments_is_not_passed() { $last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) ); @@ -554,7 +554,7 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase { * * @ticket 47968 * - * @covers ::send_headers + * @covers WP::send_headers */ public function test_feed_last_modified_should_be_the_date_of_a_comment_that_is_the_latest_update_when_withcomments_is_passed() { $last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) ); @@ -593,7 +593,7 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase { * * @ticket 47968 * - * @covers ::send_headers + * @covers WP::send_headers */ public function test_feed_last_modified_should_be_the_date_of_a_post_that_is_the_latest_update_when_withcomments_is_passed() { $last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) );