From 2f0c78c52066eca8d2c6cca5e07a6aa5740d48fc Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 1 Sep 2026 12:34:19 +0200 Subject: [PATCH] Fix PHPCS errors in Behat test files --- features/block-style.feature | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/features/block-style.feature b/features/block-style.feature index 928a24a..dbbcaba 100644 --- a/features/block-style.feature +++ b/features/block-style.feature @@ -40,12 +40,18 @@ Feature: Block style commands And a wp-content/themes/test-theme/functions.php file: """ '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` @@ -122,12 +128,18 @@ Feature: Block style commands And a wp-content/themes/format-test-theme/functions.php file: """ '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`