We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73ea7da commit 5b94370Copy full SHA for 5b94370
tests/phpunit/tests/block-supports/block-style-variations.php
@@ -65,6 +65,11 @@ public function filter_set_theme_root() {
65
public function test_add_registered_block_styles_to_theme_data() {
66
switch_theme( 'block-theme' );
67
68
+ // Trigger block style registration that occurs on `init` action.
69
+ // do_action( 'init' ) could be used here however this direct call
70
+ // means only the updates being tested are performed.
71
+ wp_register_block_style_variations_from_theme();
72
+
73
$variation_styles_data = array(
74
'color' => array(
75
'background' => 'darkslateblue',
0 commit comments