Make WordPress Core


Ignore:
Timestamp:
09/13/2023 08:06:26 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in a comment in wp_trim_excerpt().

Includes removing redundant @covers tags. There is already an existing annotation for the whole test class, following the PHPUnit recommendation:

This annotation can be added to the docblock of the test class or the individual test methods. The recommended way is to add the annotation to the docblock of the test class, not to the docblock of the test methods.

Follow-up to [56560].

See #58682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php

    r56560 r56561  
    154154         *
    155155         * @ticket 58682
    156          *
    157          * @covers ::wp_trim_excerpt
    158156         */
    159157        public function test_wp_trim_excerpt_check_if_block_renders() {
     
    173171         *
    174172         * @ticket 58682
    175          *
    176          * @covers ::wp_trim_excerpt
    177173         */
    178174        public function test_wp_trim_excerpt_unhooks_do_blocks() {
     
    201197         *
    202198         * @ticket 58682
    203          *
    204          * @covers ::wp_trim_excerpt
    205199         */
    206200        public function test_wp_trim_excerpt_should_not_permanently_unhook_do_blocks() {
     
    216210         *
    217211         * @ticket 58682
    218          *
    219          * @covers ::wp_trim_excerpt
    220212         */
    221213        public function test_wp_trim_excerpt_does_not_restore_do_blocks_if_previously_unhooked() {
Note: See TracChangeset for help on using the changeset viewer.