From 4329baf0f0ab13400762b8fb7194a7fe6dba807e 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/cache.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/cache.feature b/features/cache.feature index a92b599..8d72e9e 100644 --- a/features/cache.feature +++ b/features/cache.feature @@ -15,10 +15,10 @@ Feature: Manage oEmbed cache. """ Scenario: Clear oEmbed cache for a post - When I run `wp post-meta add 1 _oembed_foo 'bar'` + When I run `wp post meta add 1 _oembed_foo 'bar'` Then STDOUT should not be empty - When I run `wp post-meta get 1 _oembed_foo` + When I run `wp post meta get 1 _oembed_foo` Then STDOUT should be: """ bar