[wp-trac] [WordPress Trac] #60705: Test tool and unit test improvements for 6.6

WordPress Trac noreply at wordpress.org
Mon May 20 14:38:50 UTC 2024


#60705: Test tool and unit test improvements for 6.6
--------------------------------------+---------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.6
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"58176" 58176]:
 {{{
 #!CommitTicketReference repository="" revision="58176"
 Tests: Correct a number of invalid `@covers` tags.

 This resolves a few warnings when running PHPUnit with the code coverage
 report:
 {{{
 "@covers WP_Privacy_Requests_List_Table::get_views" is invalid
 "@covers WP_Block_Bindings_Registry::register_block_bindings_source" is
 invalid
 "@covers WP_Block_Patterns_Registry::_register_theme_block_patterns" is
 invalid
 }}}

 The two removed `@coversDefaultClass` annotations are redundant, as the
 class name is already included in the individual `@covers` tags. Removing
 them allows `@covers ::_register_theme_block_patterns` to work as
 expected, where `_register_theme_block_patterns` is an standalone
 function, not a class method.

 Follow-up to [54215], [56733], [57373], [57562].

 See #60705.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60705#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list