Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions features/block-style.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ Feature: Block style commands
And a wp-content/themes/test-theme/functions.php file:
"""
<?php
add_action( 'init', function() {
register_block_style( 'core/paragraph', array(
'name' => 'fancy-quote',
'label' => 'Fancy Quote',
) );
} );
add_action(
'init',
function () {
register_block_style(
'core/paragraph',
array(
'name' => 'fancy-quote',
'label' => 'Fancy Quote',
)
);
}
);
"""

When I run `wp theme activate test-theme`
Expand Down Expand Up @@ -122,12 +128,18 @@ Feature: Block style commands
And a wp-content/themes/format-test-theme/functions.php file:
"""
<?php
add_action( 'init', function() {
register_block_style( 'core/paragraph', array(
'name' => 'format-test-style',
'label' => 'Format Test Style',
) );
} );
add_action(
'init',
function () {
register_block_style(
'core/paragraph',
array(
'name' => 'format-test-style',
'label' => 'Format Test Style',
)
);
}
);
"""

When I run `wp theme activate format-test-theme`
Expand Down