From 221cb0474e83eb6e5e6dd00b44d81c7a7f264beb Mon Sep 17 00:00:00 2001 From: Shawn Hooper Date: Mon, 20 Nov 2023 12:00:45 -0500 Subject: [PATCH] Added test for suggestion meta command if option typed --- features/network-meta.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/features/network-meta.feature b/features/network-meta.feature index 7fffd042e..a3a1b288e 100644 --- a/features/network-meta.feature +++ b/features/network-meta.feature @@ -16,3 +16,14 @@ Feature: Manage network-wide custom fields. This is not a multisite install """ And the return code should be 1 + + Scenario: Suggest 'meta' when 'option' subcommand is run + Given a WP install + + When I try `wp network option` + Then STDERR should contain: + """ + Error: 'option' is not a registered subcommand of 'network'. See 'wp help network' for available subcommands. + Did you mean 'meta'? + """ + And the return code should be 1