Tests: Correct newly introduced @covers tags.

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

See https://phpunit.readthedocs.io/en/7.0/annotations.html#covers for more details.

Follow-up to [49000], [49171].

Props jrf.
See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@49305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-10-25 00:31:12 +00:00
parent 715bfc8664
commit 111ebad65e
3 changed files with 26 additions and 26 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ class Tests_WPPublishPost extends WP_UnitTestCase {
/**
* Ensure wp_publish_post adds default category.
*
* @covers wp_publish_post
* @covers ::wp_publish_post
* @ticket 51292
*/
function test_wp_publish_post_adds_default_category() {
@@ -64,7 +64,7 @@ class Tests_WPPublishPost extends WP_UnitTestCase {
/**
* Ensure wp_publish_post adds default category when tagged.
*
* @covers wp_publish_post
* @covers ::wp_publish_post
* @ticket 51292
*/
function test_wp_publish_post_adds_default_category_when_tagged() {
@@ -85,7 +85,7 @@ class Tests_WPPublishPost extends WP_UnitTestCase {
/**
* Ensure wp_publish_post does not add default term in error.
*
* @covers wp_publish_post
* @covers ::wp_publish_post
* @ticket 51292
*/
function test_wp_publish_post_respects_current_terms() {
@@ -120,7 +120,7 @@ class Tests_WPPublishPost extends WP_UnitTestCase {
/**
* Ensure wp_publish_post adds default term.
*
* @covers wp_publish_post
* @covers ::wp_publish_post
* @ticket 51292
*/
function test_wp_publish_post_adds_default_term() {