Skip to content

Commit 53ed891

Browse files
committed
Fix HTTP mocking test
The expected output changed because there are new table columns. Figured just changing it to CSV output makes the test more stable
1 parent ca36e3b commit 53ed891

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

features/http-mocking.feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ Feature: HTTP request mocking
7777
]
7878
"""
7979

80-
When I run `wp cli check-update`
81-
Then STDOUT should be a table containing rows:
82-
| version | update_type | package_url |
83-
| 999.9.9 | major | https://github.com/wp-cli/wp-cli/releases/download/v999.9.9/wp-cli-999.9.9.phar |
80+
When I try `wp cli check-update --format=csv`
81+
Then STDOUT should contain:
82+
"""
83+
999.9.9,major,https://github.com/wp-cli/wp-cli/releases/download/v999.9.9/wp-cli-999.9.9.phar,available
84+
"""
8485

8586
Scenario: Mock HTTP request in WordPress
8687
Given a WP install

0 commit comments

Comments
 (0)