Skip to content

Commit

Permalink
Block Hooks: Fix @ticket references in tests, add missing ones.
Browse files Browse the repository at this point in the history
Some tests that were added in [57157] erroneously set their `@ticket` reference to #59646, rather than #60008.
This changeset rectifies that mistake.

Additionally, it adds ticket references to #60008 to tests that were modified by [57157].

Follow-up to [57157].

See #60008.

git-svn-id: https://develop.svn.wordpress.org/trunk@57172 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ockham committed Dec 8, 2023
1 parent 525cd53 commit d1f73cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/blocks/getHookedBlockMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Tests_Blocks_GetHookedBlockMarkup extends WP_UnitTestCase {
/**
* @ticket 59646
* @ticket 60008
*
* @covers ::get_hooked_block_markup
*/
Expand All @@ -27,7 +27,7 @@ public function test_get_hooked_block_markup_adds_metadata() {
}

/**
* @ticket 59646
* @ticket 60008
*
* @covers ::get_hooked_block_markup
*/
Expand All @@ -47,7 +47,7 @@ public function test_get_hooked_block_markup_if_block_is_already_hooked() {
}

/**
* @ticket 59646
* @ticket 60008
*
* @covers ::get_hooked_block_markup
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/tests/blocks/getHookedBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public function test_get_hooked_blocks_matches_found() {

/**
* @ticket 59313
* @ticket 60008
*
* @covers ::get_hooked_blocks
* @covers ::get_block_file_template
Expand Down Expand Up @@ -165,6 +166,7 @@ public function test_loading_template_with_hooked_blocks() {

/**
* @ticket 59313
* @ticket 60008
*
* @covers ::get_hooked_blocks
* @covers ::get_block_file_template
Expand Down Expand Up @@ -195,6 +197,7 @@ public function test_loading_template_part_with_hooked_blocks() {

/**
* @ticket 59313
* @ticket 60008
*
* @covers ::get_hooked_blocks
* @covers WP_Block_Patterns_Registry::get_registered
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/tests/blocks/wpBlockPatternsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public function test_get_all_registered_includes_theme_attribute() {
* Should insert hooked blocks into registered patterns.
*
* @ticket 59476
* @ticket 60008
*
* @covers WP_Block_Patterns_Registry::register
* @covers WP_Block_Patterns_Registry::get_all_registered
Expand Down Expand Up @@ -416,6 +417,7 @@ public function test_get_registered_includes_theme_attribute() {
* Should insert hooked blocks into registered patterns.
*
* @ticket 59476
* @ticket 60008
*
* @covers WP_Block_Patterns_Registry::register
* @covers WP_Block_Patterns_Registry::get_registered
Expand Down

0 comments on commit d1f73cd

Please sign in to comment.