[wp-trac] [WordPress Trac] #59476: Tests: Add coverage for Patterns registry

WordPress Trac noreply at wordpress.org
Wed Sep 27 13:08:50 UTC 2023


#59476: Tests: Add coverage for Patterns registry
--------------------------------------+------------------------------
 Reporter:  Bernhard Reiter           |       Owner:  Bernhard Reiter
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.4
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by Bernhard Reiter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56733" 56733]:
 {{{
 #!CommitTicketReference repository="" revision="56733"
 Blocks: Add unit test coverage for Patterns registry.

 Prior to this changeset, we did not seem to have any unit test coverage
 for the Patterns registry (`WP_Block_Patterns_Registry`).

 With Block Hooks logic recently added ([56649]), it is particularly
 advisable to add some unit tests to the `get_registered()` and
 `get_all_registered()` methods to guard hooked block insertion against
 regressions.

 Fixes #59476.
 }}}

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


More information about the wp-trac mailing list