Skip to content

Commit

Permalink
Fix test_add_registered_block_styles_to_theme_data
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 22, 2024
1 parent 368de7c commit 334ad2f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions phpunit/block-supports/block-style-variations-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,6 @@ public function test_add_registered_block_styles_to_theme_data() {
$group_styles = $theme_json['styles']['blocks']['core/group'] ?? array();
$expected = array(
'variations' => array(
'WithSlug' => array(
'color' => array(
'background' => 'aliceblue',
'text' => 'midnightblue',
),
),
'my-variation' => $variation_styles_data,

/*
* The following block style variations are registered
Expand All @@ -177,6 +170,17 @@ public function test_add_registered_block_styles_to_theme_data() {
'text' => 'lightblue',
),
),

/*
* Manually registered variations.
*/
'WithSlug' => array(
'color' => array(
'background' => 'aliceblue',
'text' => 'midnightblue',
),
),
'my-variation' => $variation_styles_data,
),
);

Expand Down

0 comments on commit 334ad2f

Please sign in to comment.