Skip to content

Commit 72de120

Browse files
committed
Fix unit test
1 parent f3a04cb commit 72de120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/admin/includesPost.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ public function test_get_block_editor_server_block_settings() {
918918
'render_callback' => 'foo',
919919
'ancestor' => array( 'core/test-ancestor' ),
920920
'selectors' => array( 'root' => '.wp-block-test' ),
921-
'blockHooks' => array( 'core/post-content' => 'before' ),
921+
'block_hooks' => array( 'core/post-content' => 'before' ),
922922
);
923923

924924
register_block_type( $name, $settings );
@@ -938,8 +938,8 @@ public function test_get_block_editor_server_block_settings() {
938938
'lock' => array( 'type' => 'object' ),
939939
),
940940
'usesContext' => array(),
941-
'selectors' => array( 'root' => '.wp-block-test' ),
942941
'blockHooks' => array( 'core/post-content' => 'before' ),
942+
'selectors' => array( 'root' => '.wp-block-test' ),
943943
'category' => 'common',
944944
'styles' => array(),
945945
'ancestor' => array( 'core/test-ancestor' ),

0 commit comments

Comments
 (0)