Skip to content

Commit

Permalink
format php
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Nov 7, 2023
1 parent c5261b6 commit 0e63a3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions phpunit/class-wp-navigation-block-renderer-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function test_gutenberg_get_markup_for_inner_block_navigation_link() {

// Setup an empty testing instance of `WP_Navigation_Block_Renderer` and save the original.
$reflection = new ReflectionClass( 'WP_Navigation_Block_Renderer' );
$method = $reflection->getMethod( 'get_markup_for_inner_block' );
$method = $reflection->getMethod( 'get_markup_for_inner_block' );
$method->setAccessible( true );
// Invoke the private method
$result = $method->invoke( $reflection, $navigation_link_block );
Expand All @@ -31,16 +31,16 @@ public function test_gutenberg_get_markup_for_inner_block_navigation_link() {
public function test_gutenberg_get_markup_for_inner_block_site_title() {

// We are testing the site title block because we manually add list items around it
$parsed_blocks = parse_blocks(
$parsed_blocks = parse_blocks(
'<!-- wp:site-title /-->'
);
$parsed_block = $parsed_blocks[0];
$context = array();
$parsed_block = $parsed_blocks[0];
$context = array();
$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' );
$method = $reflection->getMethod( 'get_markup_for_inner_block' );
$method = $reflection->getMethod( 'get_markup_for_inner_block' );
$method->setAccessible( true );
// Invoke the private method
$result = $method->invoke( $reflection, $site_title_block );
Expand Down

0 comments on commit 0e63a3a

Please sign in to comment.