diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index 91cd2f9a168ae..bcf0468442abb 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -5530,8 +5530,9 @@ public function test_opt_out_of_block_style_variations_by_default() { ), ), ); + $selectors = array(); - $block_nodes = $func->invoke( null, $theme_json ); + $block_nodes = $func->invoke( null, $theme_json, $selectors ); $button_variations = $block_nodes[0]['variations'] ?? array(); $this->assertEquals( array(), $button_variations ); @@ -5565,9 +5566,10 @@ public function test_opt_in_to_block_style_variations() { ), ), ); + $selectors = array(); $options = array( 'block_style_variations' => true ); - $block_nodes = $func->invoke( null, $theme_json, $options ); + $block_nodes = $func->invoke( null, $theme_json, $selectors, $options ); $button_variations = $block_nodes[0]['variations'] ?? array(); $expected = array(