From aaf55866988487ec9335f4a944e566ac36cdd723 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Tue, 30 Jan 2024 14:33:35 +0200 Subject: [PATCH] undo the class suffix remove in test setup --- phpunit/blocks/class-wp-navigation-block-renderer-test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpunit/blocks/class-wp-navigation-block-renderer-test.php b/phpunit/blocks/class-wp-navigation-block-renderer-test.php index 124e0fe91bd1e6..6bcf08c179e90b 100644 --- a/phpunit/blocks/class-wp-navigation-block-renderer-test.php +++ b/phpunit/blocks/class-wp-navigation-block-renderer-test.php @@ -25,7 +25,7 @@ public function test_gutenberg_default_block_is_enclosed_in_li_tags() { $navigation_link_block = new WP_Block( $parsed_block, $context ); // Setup an empty testing instance of `WP_Navigation_Block_Renderer` and save the original. - $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer' ); + $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer_Gutenberg' ); $method = $reflection->getMethod( 'get_markup_for_inner_block' ); $method->setAccessible( true ); // Invoke the private method. @@ -53,7 +53,7 @@ public function test_gutenberg_get_markup_for_inner_block_site_title() { $site_title_block = new WP_Block( $parsed_block, $context ); // Setup an empty testing instance of `WP_Navigation_Block_Renderer` and save the original. - $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer' ); + $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer_Gutenberg' ); $method = $reflection->getMethod( 'get_markup_for_inner_block' ); $method->setAccessible( true ); // Invoke the private method. @@ -71,7 +71,7 @@ public function test_gutenberg_get_markup_for_inner_block_site_title() { * @covers WP_Navigation_Block_Renderer::get_inner_blocks_from_navigation_post */ public function test_gutenberg_get_inner_blocks_from_navigation_post_returns_empty_block_list() { - $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer' ); + $reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer_Gutenberg' ); $method = $reflection->getMethod( 'get_inner_blocks_from_navigation_post' ); $method->setAccessible( true ); $attributes = array( 'ref' => 0 );