Skip to content

Commit

Permalink
Fix php unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 24, 2024
1 parent d759d0f commit 9938394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpunit/class-wp-navigation-block-renderer-test.php
Original file line number Diff line number Diff line change
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 9938394

Please sign in to comment.