- Timestamp:
- 04/25/2025 07:21:31 PM (8 weeks ago)
- Location:
- branches/6.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.8
-
branches/6.8/tests/phpunit/tests/blocks/applyBlockHooksToContent.php
r59523 r60189 18 18 * 19 19 * @ticket 61902. 20 * @ticket 63287. 20 21 */ 21 22 public static function wpSetUpBeforeClass() { … … 24 25 array( 25 26 'block_hooks' => array( 26 ' tests/anchor-block' => 'after',27 'core/post-content' => 'after', 27 28 ), 28 29 ) … … 80 81 /** 81 82 * @ticket 61902 83 * @ticket 63287 82 84 */ 83 85 public function test_apply_block_hooks_to_content_inserts_hooked_block() { 84 86 $context = new WP_Block_Template(); 85 $context->content = '<!-- wp: tests/anchor-block/-->';87 $context->content = '<!-- wp:post-content /-->'; 86 88 87 89 $actual = apply_block_hooks_to_content( $context->content, $context, 'insert_hooked_blocks' ); 88 90 $this->assertSame( 89 '<!-- wp: tests/anchor-block/--><!-- wp:tests/hooked-block /-->',91 '<!-- wp:post-content /--><!-- wp:tests/hooked-block /-->', 90 92 $actual 91 93 ); … … 94 96 /** 95 97 * @ticket 61074 98 * @ticket 63287 96 99 */ 97 100 public function test_apply_block_hooks_to_content_with_context_set_to_null() { 98 $content = '<!-- wp: tests/anchor-block/-->';101 $content = '<!-- wp:post-content /-->'; 99 102 100 103 /* … … 107 110 $actual = apply_block_hooks_to_content( $content, null, 'insert_hooked_blocks' ); 108 111 $this->assertSame( 109 '<!-- wp: tests/anchor-block/--><!-- wp:tests/hooked-block /-->',112 '<!-- wp:post-content /--><!-- wp:tests/hooked-block /-->', 110 113 $actual 111 114 );
Note: See TracChangeset
for help on using the changeset viewer.