mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user