Skip to content

Commit 427f167

Browse files
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
1 parent 3fe5b93 commit 427f167

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/phpunit/tests/feed/rss2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public function data_test_get_feed_build_date() {
515515
*
516516
* @ticket 47968
517517
*
518-
* @covers ::send_headers
518+
* @covers WP::send_headers
519519
*/
520520
public function test_feed_last_modified_should_be_a_post_date_when_withcomments_is_not_passed() {
521521
$last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) );
@@ -554,7 +554,7 @@ function( $headers ) use ( $last_week ) {
554554
*
555555
* @ticket 47968
556556
*
557-
* @covers ::send_headers
557+
* @covers WP::send_headers
558558
*/
559559
public function test_feed_last_modified_should_be_the_date_of_a_comment_that_is_the_latest_update_when_withcomments_is_passed() {
560560
$last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) );
@@ -593,7 +593,7 @@ function( $headers ) use ( $yesterday ) {
593593
*
594594
* @ticket 47968
595595
*
596-
* @covers ::send_headers
596+
* @covers WP::send_headers
597597
*/
598598
public function test_feed_last_modified_should_be_the_date_of_a_post_that_is_the_latest_update_when_withcomments_is_passed() {
599599
$last_week = gmdate( 'Y-m-d H:i:s', strtotime( '-1 week' ) );

0 commit comments

Comments
 (0)