Skip to content

Commit

Permalink
Blocks: Add unit test coverage for Patterns registry.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ockham committed Sep 27, 2023
1 parent 9726320 commit 7024087
Showing 1 changed file with 439 additions and 0 deletions.
Loading

0 comments on commit 7024087

Please sign in to comment.