Tests: Correct two @covers annotations to use the recommended pattern.

When global functions are covered, they need to be prefixed with `::` (double colon) to distinguish them from class name.

Reference: [https://docs.phpunit.de/en/10.3/annotations.html#covers PHPUnit Manual: @covers annotation].

Follow-up to [48848], [49305], [53741], [56296].

Props ayeshrajans.
Fixes #59069.

git-svn-id: https://develop.svn.wordpress.org/trunk@56384 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2023-08-11 11:17:40 +00:00
parent 415c9f6bb4
commit 1bd3cac151
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class WP_REST_Navigation_Fallback_Controller_Test extends WP_Test_REST_Controlle
*
* @ticket 58557
*
* @covers wp_add_fields_to_navigation_fallback_embedded_links
* @covers ::wp_add_fields_to_navigation_fallback_embedded_links
*
* @since 6.3.0 Added Navigation Fallbacks endpoint.
*/

View File

@ -88,7 +88,7 @@ class Tests_Theme_CustomHeader extends WP_UnitTestCase {
*
* @ticket 56180
*
* @covers get_header_image
* @covers ::get_header_image
*
* @dataProvider data_filter_header_image
*