Skip to content

Commit 6ff3bf6

Browse files
author
Jeremy Ward
committed
Further shorten Behat test for cli_init check.
1 parent 367b68f commit 6ff3bf6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

features/command.feature

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,12 +1675,8 @@ Feature: WP-CLI Commands
16751675
// Plugin Name: Custom Command
16761676
16771677
add_action( 'cli_init', function() {
1678-
WP_CLI::add_command( 'custom', 'do_custom_command' );
1678+
WP_CLI::add_command( 'custom', function () {} );
16791679
} );
1680-
1681-
function do_custom_command() {
1682-
WP_CLI::success( 'Triggered the callback for the custom command.' );
1683-
}
16841680
"""
16851681
And I run `wp plugin activate custom-command`
16861682
When I run `wp custom --help`

0 commit comments

Comments
 (0)