Skip to content

Commit 4adc5db

Browse files
committed
Update tests for creating and setting privacy page before site empty
1 parent d809080 commit 4adc5db

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

features/site-empty.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ Feature: Empty a WordPress site of its data
2929
Success: Created post_tag 2.
3030
"""
3131

32+
When I run `wp post create --post_type=page --post_title='Sample Privacy Page' --post_content='Sample Privacy Terms' --porcelain`
33+
Then save STDOUT as {PAGE_ID}
34+
35+
When I run `wp option set wp_page_for_privacy_policy {PAGE_ID}`
36+
Then STDOUT should be:
37+
"""
38+
Success: Updated 'wp_page_for_privacy_policy' option.
39+
"""
40+
41+
When I run `wp option get wp_page_for_privacy_policy`
42+
Then STDOUT should be:
43+
"""
44+
{PAGE_ID}
45+
"""
46+
3247
When I run `wp site empty --yes`
3348
Then STDOUT should be:
3449
"""

0 commit comments

Comments
 (0)