Skip to content

Commit

Permalink
undo the class suffix remove in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jan 30, 2024
1 parent 3bf89b3 commit aaf5586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpunit/blocks/class-wp-navigation-block-renderer-test.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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 );
Expand Down

0 comments on commit aaf5586

Please sign in to comment.