diff --git a/phpunit/block-supports/block-style-variations-test.php b/phpunit/block-supports/block-style-variations-test.php index 62fa923dbdd7e9..870a76a4fb4a49 100644 --- a/phpunit/block-supports/block-style-variations-test.php +++ b/phpunit/block-supports/block-style-variations-test.php @@ -94,22 +94,6 @@ public function test_add_registered_block_styles_to_theme_data() { ), ); - /* - * This style is to be deliberately overwritten by the theme.json partial - * See `phpunit/data/themedir1/block-theme/styles/block-style-variation-with-slug.json`. - */ - register_block_style( - 'core/group', - array( - 'name' => 'WithSlug', - 'style_data' => array( - 'color' => array( - 'background' => 'whitesmoke', - 'text' => 'black', - ), - ), - ) - ); register_block_style( 'core/group', array( @@ -122,12 +106,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, /* @@ -151,7 +129,6 @@ public function test_add_registered_block_styles_to_theme_data() { ); unregister_block_style( 'core/group', 'my-variation' ); - unregister_block_style( 'core/group', 'WithSlug' ); $this->assertSameSetsWithIndex( $group_styles, $expected ); } diff --git a/phpunit/class-wp-theme-json-resolver-test.php b/phpunit/class-wp-theme-json-resolver-test.php index 6333c3d1dd7760..50e1d9d846899e 100644 --- a/phpunit/class-wp-theme-json-resolver-test.php +++ b/phpunit/class-wp-theme-json-resolver-test.php @@ -1118,18 +1118,6 @@ public function data_get_style_variations() { ), ), ), - array( - 'blockTypes' => array( 'core/group', 'core/columns' ), - 'version' => 3, - 'slug' => 'WithSlug', - 'title' => 'With Slug', - 'styles' => array( - 'color' => array( - 'background' => 'aliceblue', - 'text' => 'midnightblue', - ), - ), - ), ), ), ); diff --git a/phpunit/data/themedir1/block-theme/styles/block-style-variation-with-slug.json b/phpunit/data/themedir1/block-theme/styles/block-style-variation-with-slug.json deleted file mode 100644 index d938a8a0db833c..00000000000000 --- a/phpunit/data/themedir1/block-theme/styles/block-style-variation-with-slug.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": 3, - "blockTypes": [ "core/group", "core/columns" ], - "slug": "WithSlug", - "title": "With Slug", - "styles": { - "color": { - "background": "aliceblue", - "text": "midnightblue" - } - } -}