mirror of
https://ghproxy.net/https://github.com/wp-cli/extension-command.git
synced 2025-10-04 01:34:31 +08:00
18 lines
627 B
Gherkin
18 lines
627 B
Gherkin
Feature: Install WordPress plugins from GitHub
|
|
|
|
Scenario: Verify that providing a plugin releases/latest GitHub URL will get the latest ZIP
|
|
Given a WP install
|
|
When I run `wp plugin install https://github.com/danielbachhuber/one-time-login/releases/latest`
|
|
Then STDOUT should contain:
|
|
"""
|
|
Latest release resolved to Version
|
|
"""
|
|
And STDOUT should contain:
|
|
"""
|
|
package from https://api.github.com/repos/danielbachhuber/one-time-login/zipball/
|
|
"""
|
|
And STDOUT should contain:
|
|
"""
|
|
Plugin installed successfully.
|
|
Success: Installed 1 of 1 plugins.
|
|
"""
|