From 41b6a60b8e59ef812b041124de6e0cf716bc5df7 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Thu, 23 Jul 2026 07:41:53 +0200 Subject: [PATCH] Modernize deprecated syntax in Behat tests WP-CLI now emits deprecation warnings when it rewrites legacy command syntax. Use the modern forms in the Behat scenarios so the standard run step can continue to require clean STDERR. --- features/config-create.feature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/config-create.feature b/features/config-create.feature index 72963033..8a6a669f 100644 --- a/features/config-create.feature +++ b/features/config-create.feature @@ -126,12 +126,12 @@ Feature: Create a wp-config file define( 'AUTH_SALT', """ - Scenario: wp core config uses parameters from wp-cli.yml + Scenario: wp config create uses parameters from wp-cli.yml Given an empty directory And WP files And a wp-cli.yml file: """ - core config: + config create: dbname: wordpress dbuser: root extra-php: | @@ -139,7 +139,7 @@ Feature: Create a wp-config file define( 'WP_POST_REVISIONS', 50 ); """ - When I run `wp core config --skip-check` + When I run `wp config create --skip-check` Then the wp-config.php file should contain: """ define( 'DB_NAME', 'wordpress' )