- Timestamp:
- 06/24/2024 08:49:52 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-supports/block-style-variations.php
r58429 r58466 63 63 * @ticket 61312 64 64 * @ticket 61440 65 * @ticket 61451 65 66 */ 66 67 public function test_add_registered_block_styles_to_theme_data() { 67 68 switch_theme( 'block-theme' ); 68 69 // Register theme-defined variations.70 WP_Theme_JSON_Resolver::get_theme_data();71 // Register user-defined variations.72 WP_Theme_JSON_Resolver::get_user_data();73 69 74 70 $variation_styles_data = array( … … 126 122 $expected = array( 127 123 'variations' => array( 128 // @ticket 61440129 'WithSlug' => array(130 'color' => array(131 'background' => 'aliceblue',132 'text' => 'midnightblue',133 ),134 ),135 'my-variation' => $variation_styles_data,136 124 137 125 /* … … 152 140 ), 153 141 ), 142 143 /* 144 * Manually registered variations. 145 * @ticket 61440 146 */ 147 'WithSlug' => array( 148 'color' => array( 149 'background' => 'aliceblue', 150 'text' => 'midnightblue', 151 ), 152 ), 153 'my-variation' => $variation_styles_data, 154 154 ), 155 155 ); … … 158 158 unregister_block_style( 'core/group', 'WithSlug' ); 159 159 160 $this->assertSameSetsWithIndex( $expected, $group_styles );160 $this->assertSameSetsWithIndex( $expected, $group_styles, 'Variation data does not match' ); 161 161 } 162 162 }
Note: See TracChangeset
for help on using the changeset viewer.