Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update regex
  • Loading branch information
swissspidy committed Dec 18, 2024
commit ee8a00f86a61954a071c1643f511e0b183d842d3
8 changes: 4 additions & 4 deletions features/core-check-update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Feature: Check for more recent versions
Then STDOUT should not be empty

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$#
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:
Expand All @@ -20,7 +20,7 @@ Feature: Check for more recent versions
"""

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$#
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:
Expand All @@ -29,7 +29,7 @@ Feature: Check for more recent versions
"""

When I run `wp core check-update --minor`
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$#
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