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
This commit is contained in:
Sergey Biryukov 2022-09-01 16:21:46 +00:00
parent 3fe5b93277
commit 427f1676af

View File

@ -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' ) );