Skip to content

Commit 2239c96

Browse files
Tests: Add missing @Covers tags for blocks, oembed, and rewrite tests.
Follow-up to [62213], [62218], [62222]. See #64225.
1 parent e12ddb3 commit 2239c96

10 files changed

Lines changed: 21 additions & 0 deletions

File tree

tests/phpunit/tests/blocks/registerBlockTypeFromMetadataWithRegistry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Tests for WP_Block_Metadata_Registry integration with register_block_type_from_metadata().
44
*
55
* @group blocks
6+
*
7+
* @covers ::register_block_type_from_metadata
68
*/
79
class Tests_Blocks_RegisterBlockTypeFromMetadataWithRegistry extends WP_UnitTestCase {
810
private $temp_manifest_file;

tests/phpunit/tests/blocks/render.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @since 5.0.0
88
*
99
* @group blocks
10+
*
11+
* @covers ::do_blocks
1012
*/
1113
class Tests_Blocks_Render extends WP_UnitTestCase {
1214
/**

tests/phpunit/tests/blocks/renderReusable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @since 5.0.0
88
*
99
* @group blocks
10+
*
11+
* @covers WP_Block
1012
*/
1113
class Tests_Blocks_RenderReusable extends WP_UnitTestCase {
1214
/**

tests/phpunit/tests/blocks/wpBlockList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @since 5.5.0
88
*
99
* @group blocks
10+
*
11+
* @covers WP_Block_List
1012
*/
1113
class Tests_Blocks_wpBlockList extends WP_UnitTestCase {
1214

tests/phpunit/tests/blocks/wpBlockParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @since 5.0.0
88
*
99
* @group blocks
10+
*
11+
* @covers WP_Block_Parser
1012
*/
1113
class Tests_Blocks_wpBlockParser extends WP_UnitTestCase {
1214
/**

tests/phpunit/tests/oembed/WpEmbed.php

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

33
/**
44
* @group oembed
5+
*
6+
* @covers WP_Embed
57
*/
68
class Tests_WP_Embed extends WP_UnitTestCase {
79
/**

tests/phpunit/tests/oembed/postEmbedUrl.php

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

33
/**
44
* @group oembed
5+
*
6+
* @covers ::get_post_embed_url
57
*/
68
class Tests_Post_Embed_URL extends WP_UnitTestCase {
79
public function test_non_existent_post() {

tests/phpunit/tests/oembed/wpOembed.php

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

33
/**
44
* @group oembed
5+
*
6+
* @covers WP_oEmbed
57
*/
68
class Tests_WP_oEmbed extends WP_UnitTestCase {
79
/**

tests/phpunit/tests/rewrite/numericSlugs.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* @group rewrite
55
* @ticket 5305
6+
*
7+
* @covers ::url_to_postid
68
*/
79
class Tests_Rewrite_NumericSlugs extends WP_UnitTestCase {
810
private $old_current_user;

tests/phpunit/tests/rewrite/permastructs.php

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

33
/**
44
* @group rewrite
5+
*
6+
* @covers ::add_permastruct
7+
* @covers ::remove_permastruct
58
*/
69
class Tests_Rewrite_Permastructs extends WP_UnitTestCase {
710

0 commit comments

Comments
 (0)