Skip to content

Commit

Permalink
Revert the unit tests back to the as they are in GB
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 16, 2024
1 parent da7c09d commit 8011db3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/phpunit/tests/theme/wpThemeJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8011db3

Please sign in to comment.