Make WordPress Core

Changeset 62264


Ignore:
Timestamp:
04/26/2026 11:49:04 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Tests: Move @covers tags to the class-level DocBlock in some block-related tests.

See #64225.

Location:
trunk/tests/phpunit/tests/blocks
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/getHookedBlocks.php

    r58186 r62264  
    1010 * @group blocks
    1111 * @group block-hooks
     12 *
     13 * @covers ::get_hooked_blocks
    1214 */
    1315class Tests_Blocks_GetHookedBlocks extends WP_UnitTestCase {
    … …  
    5961        /**
    6062         * @ticket 59383
    61          *
    62          * @covers ::get_hooked_blocks
    6363         */
    6464        public function test_get_hooked_blocks_no_match_found() {
    … …  
    7070        /**
    7171         * @ticket 59383
    72          *
    73          * @covers ::get_hooked_blocks
    7472         */
    7573        public function test_get_hooked_blocks_matches_found() {
    … …  
    139137         * @ticket 60506
    140138         *
    141          * @covers ::get_hooked_blocks
    142139         * @covers ::get_block_file_template
    143140         */
    … …  
    171168         * @ticket 60506
    172169         *
    173          * @covers ::get_hooked_blocks
    174170         * @covers ::get_block_file_template
    175171         */
    … …  
    203199         * @ticket 60506
    204200         *
    205          * @covers ::get_hooked_blocks
    206201         * @covers WP_Block_Patterns_Registry::get_registered
    207202         */
  • trunk/tests/phpunit/tests/blocks/insertHookedBlocks.php

    r57668 r62264  
    1010 * @group blocks
    1111 * @group block-hooks
     12 *
     13 * @covers ::insert_hooked_blocks
    1214 */
    1315class Tests_Blocks_InsertHookedBlocks extends WP_UnitTestCase {
    … …  
    2729         * @ticket 60126
    2830         * @ticket 60506
    29          *
    30          * @covers ::insert_hooked_blocks
    3131         */
    3232        public function test_insert_hooked_blocks_returns_correct_markup() {
    … …  
    4747         * @ticket 60126
    4848         * @ticket 60506
    49          *
    50          * @covers ::insert_hooked_blocks
    5149         */
    5250        public function test_insert_hooked_blocks_if_block_is_ignored() {
    … …  
    7270         * @ticket 60126
    7371         * @ticket 60506
    74          *
    75          * @covers ::insert_hooked_blocks
    7672         */
    7773        public function test_insert_hooked_blocks_if_other_block_is_ignored() {
    … …  
    9793         * @ticket 60126
    9894         * @ticket 60506
    99          *
    100          * @covers ::insert_hooked_blocks
    10195         */
    10296        public function test_insert_hooked_blocks_filter_can_set_attributes() {
    … …  
    140134         * @ticket 60126
    141135         * @ticket 60506
    142          *
    143          * @covers ::insert_hooked_blocks
    144136         */
    145137        public function test_insert_hooked_blocks_filter_can_wrap_block() {
    … …  
    185177         * @ticket 60580
    186178         *
    187          * @covers ::insert_hooked_blocks
    188179         */
    189180        public function test_insert_hooked_blocks_filter_can_suppress_hooked_block() {
  • trunk/tests/phpunit/tests/blocks/insertHookedBlocksAndSetIgnoredHookedBlocksMetadata.php

    r58186 r62264  
    1010 * @group blocks
    1111 * @group block-hooks
     12 *
    1213 * @covers ::insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata
    1314 */
Note: See TracChangeset for help on using the changeset viewer.