Skip to content

Commit a4c0adf

Browse files
committed
Fix the fixes
We need to fix the tests in such a way that they don't break for everything that is not `trunk`, of course.
1 parent c954feb commit a4c0adf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

features/post.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Feature: Manage WordPress posts
223223
Then STDOUT should be:
224224
"""
225225
http://example.com/?p=1
226-
http://example.com/?p=4
226+
http://example.com/?p={POST_ID}
227227
"""
228228

229229
Scenario: Update a post from file or STDIN
@@ -308,10 +308,9 @@ Feature: Manage WordPress posts
308308
"""
309309

310310
When I run `wp post list --post_type='page' --field=title`
311-
Then STDOUT should be:
311+
Then STDOUT should contain:
312312
"""
313313
Sample Page
314-
Privacy Policy
315314
"""
316315

317316
When I run `wp post list --post_type=any --fields=post_title,post_name,post_status --format=csv --orderby=post_title --order=ASC`

features/site-empty.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Feature: Empty a WordPress site of its data
1717
"""
1818
And the return code should be 1
1919

20-
When I run `wp post create --post_title='Test post' --post_content='Test content.' --porcelain`
21-
Then STDOUT should be:
20+
When I run `wp post create --post_title='Test post' --post_content='Test content.'`
21+
Then STDOUT should contain:
2222
"""
23-
5
23+
Success: Created post
2424
"""
2525

2626
When I run `wp term create post_tag 'Test term' --slug=test --description='This is a test term'`

0 commit comments

Comments
 (0)