extension-command/features/plugin-install-github-latest.feature
2025-04-18 16:34:23 +05:45

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.
"""