Skip to content

Commit 1192b6b

Browse files
Tests: Correct @covers tags for term_exists() tests.
Includes moving the tag to the class DocBlock, as this test class covers a single function. Follow-up to [52921], [60676]. See #63167. git-svn-id: https://develop.svn.wordpress.org/trunk@60689 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7158d9f commit 1192b6b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/phpunit/tests/term/termExists.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
/**
44
* @group taxonomy
5+
*
6+
* @covers ::term_exists
57
*/
68
class Tests_TermExists extends WP_UnitTestCase {
79
public function test_term_exists_term_0() {
@@ -273,7 +275,6 @@ public function test_term_exists_known() {
273275

274276
/**
275277
* @ticket 36949
276-
* @covers ::term_exists()
277278
*/
278279
public function test_term_lookup_by_id_and_update() {
279280
register_taxonomy( 'wptests_tax', 'post' );
@@ -295,7 +296,6 @@ public function test_term_lookup_by_id_and_update() {
295296

296297
/**
297298
* @ticket 36949
298-
* @covers ::term_exists()
299299
*/
300300
public function test_term_lookup_by_slug_and_update() {
301301
register_taxonomy( 'wptests_tax', 'post' );
@@ -317,7 +317,6 @@ public function test_term_lookup_by_slug_and_update() {
317317

318318
/**
319319
* @ticket 36949
320-
* @covers ::term_exists()
321320
*/
322321
public function test_term_exists_caching() {
323322
register_taxonomy( 'wptests_tax', 'post' );
@@ -345,7 +344,6 @@ public function test_term_exists_caching() {
345344

346345
/**
347346
* @ticket 36949
348-
* @covers ::term_exists()
349347
*/
350348
public function test_term_exists_caching_suspend_cache_invalidation() {
351349
register_taxonomy( 'wptests_tax', 'post' );
@@ -371,7 +369,6 @@ public function test_term_exists_caching_suspend_cache_invalidation() {
371369

372370
/**
373371
* @ticket 36949
374-
* @covers ::term_exists()
375372
*/
376373
public function test_term_exists_caching_by_int_suspend_cache_invalidation() {
377374
register_taxonomy( 'wptests_tax', 'post' );
@@ -404,7 +401,6 @@ public function test_term_exists_unknown() {
404401

405402
/**
406403
* @ticket 55358
407-
* @covers ::term_exists()
408404
*/
409405
public function test_term_exists_with_numeric_parent_term() {
410406
register_taxonomy(
@@ -444,7 +440,6 @@ public function test_term_exists_with_numeric_parent_term() {
444440

445441
/**
446442
* @ticket 55358
447-
* @covers ::term_exists()
448443
*/
449444
public function test_term_exists_with_non_numeric_parent_term() {
450445
register_taxonomy(
@@ -484,7 +479,6 @@ public function test_term_exists_with_non_numeric_parent_term() {
484479

485480
/**
486481
* @ticket 55358
487-
* @covers ::term_exists()
488482
*/
489483
public function test_term_exists_with_empty_taxonomy_and_numeric_parent() {
490484
register_taxonomy(
@@ -519,7 +513,6 @@ public function test_term_exists_with_empty_taxonomy_and_numeric_parent() {
519513

520514
/**
521515
* @ticket 55358
522-
* @covers ::term_exists()
523516
*/
524517
public function test_term_exists_with_wordpress_categories() {
525518
// Create a parent category

0 commit comments

Comments
 (0)