Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions features/core-check-update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,27 @@ Feature: Check for more recent versions
When I run `wp core download --version=5.8 --force`
Then STDOUT should not be empty

When I run `wp core check-update`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-latest} | major | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-latest}.zip |
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
When I run `wp core check-update --format=csv`
Then STDOUT should match #{WP_VERSION-latest},major,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-latest}.zip#
And STDOUT should match #{WP_VERSION-5.8-latest},minor,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip#

When I run `wp core check-update --format=count`
Then STDOUT should be:
"""
2
"""

When I run `wp core check-update --major`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-latest} | major | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-latest}.zip |
When I run `wp core check-update --major --format=csv`
Then STDOUT should match #{WP_VERSION-latest},major,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-latest}.zip#

When I run `wp core check-update --major --format=count`
Then STDOUT should be:
"""
1
"""

When I run `wp core check-update --minor`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
When I run `wp core check-update --minor --format=csv`
Then STDOUT should match #{WP_VERSION-5.8-latest},minor,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip#

When I run `wp core check-update --minor --format=count`
Then STDOUT should be:
Expand Down
Loading