mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user