You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2da6b59
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: features/db-search.feature
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1013,6 +1013,25 @@ Feature: Search through the database
1013
1013
1
1014
1014
"""
1015
1015
1016
+
Scenario: Search with exclude revisions option on another site's posts table
1017
+
Given a WP multisite install
1018
+
And I run `wp site create --slug=second --porcelain`
1019
+
And I run `wp post create --url=example.com/second --post_content="This is the original post content." --post_title="Original Post" --post_status=publish --porcelain`
1020
+
And save STDOUT as {POST_ID}
1021
+
And I run `wp post update {POST_ID} --url=example.com/second --post_content="This is the updated post content."`
1022
+
1023
+
When I run `wp db search "updated post content" wp_2_posts --network --format=count`
1024
+
Then STDOUT should be:
1025
+
"""
1026
+
2
1027
+
"""
1028
+
1029
+
When I run `wp db search "updated post content" wp_2_posts --network --exclude_revisions --format=count`
0 commit comments