-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GitHub release installation (#421)
--------- Co-authored-by: Bogdan Ungureanu <[email protected]> Co-authored-by: Daniel Bachhuber <[email protected]>
- Loading branch information
1 parent
fa8bfd9
commit 617e9c5
Showing
2 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: Install WordPress plugins | ||
|
||
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. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters