You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Install plugin from a zip file with a custom --slug
482
+
Given a WP install
483
+
484
+
When I run `wp plugin install https://github.com/wp-cli-test/generic-example-plugin/archive/refs/heads/master.zip --slug=my-custom-plugin`
485
+
Then STDOUT should contain:
486
+
"""
487
+
Renamed 'generic-example-plugin-master' to 'my-custom-plugin'.
488
+
"""
489
+
And STDOUT should contain:
490
+
"""
491
+
Plugin installed successfully.
492
+
"""
493
+
And the wp-content/plugins/my-custom-plugin directory should exist
494
+
And the wp-content/plugins/generic-example-plugin-master directory should not exist
495
+
And the return code should be 0
496
+
497
+
Scenario: Error when --slug is used with multiple plugins
498
+
Given a WP install
499
+
500
+
When I try `wp plugin install hello-dolly akismet --slug=my-plugin`
501
+
Then STDERR should contain:
502
+
"""
503
+
Error: The --slug option can only be used when installing a single item.
0 commit comments