Skip to content

Commit 92c6937

Browse files
Merge pull request #177 from wp-cli/176-fix-tests-privacy-policy-page
Fix tests after Core's introduction of a default "Privacy Policy" page
2 parents 518acae + a4c0adf commit 92c6937

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

features/post.feature

Lines changed: 2 additions & 2 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=3
226+
http://example.com/?p={POST_ID}
227227
"""
228228

229229
Scenario: Update a post from file or STDIN
@@ -308,7 +308,7 @@ 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
314314
"""

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-
4
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)