From db071f729c6e4fc6c46af89c5b602e704fa541e6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Nov 2023 22:52:06 +0000 Subject: [PATCH] Docs: Fix broken `@covers` tag in `_wp_post_thumbnail_context_filter()` tests. Without the space between the tag and the "description", the tag will not be recognized and the test will not record coverage correctly. Reference: [https://docs.phpunit.de/en/9.6/annotations.html#covers PHPUnit Manual: Annotations]. Follow-up to [55821]. Props jrf. See #59651. git-svn-id: https://develop.svn.wordpress.org/trunk@57105 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/thumbnails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/post/thumbnails.php b/tests/phpunit/tests/post/thumbnails.php index b06ec02570..fbc8b7bc6e 100644 --- a/tests/phpunit/tests/post/thumbnails.php +++ b/tests/phpunit/tests/post/thumbnails.php @@ -455,7 +455,7 @@ class Tests_Post_Thumbnail_Template extends WP_UnitTestCase { * * @ticket 58212 * - * @covers::_wp_post_thumbnail_context_filter + * @covers ::_wp_post_thumbnail_context_filter */ public function test_wp_post_thumbnail_context_filter_should_return_the_post_thumbnail() { $this->assertSame( 'the_post_thumbnail', _wp_post_thumbnail_context_filter( 'wp_get_attachment_image' ) );