Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions features/search-replace.feature
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ Feature: Do global search/replace
And I run `wp eval-file setup-theme-mod.php`

When I run `wp theme mod get header_image_data`
Then STDOUT should be a table containing rows:
| key | value |
| header_image_data | {"url":"https:\/\/subdomain.example.com\/foo.jpg"} |
Then STDOUT should contain:
"""
https://subdomain.example.com/foo.jpg
"""
Comment thread
Copilot marked this conversation as resolved.

When I run `wp search-replace subdomain.example.com example.com --no-recurse-objects`
Then STDOUT should be a table containing rows:
Expand All @@ -271,9 +272,10 @@ Feature: Do global search/replace
| wp_options | option_value | 1 | PHP |

When I run `wp theme mod get header_image_data`
Then STDOUT should be a table containing rows:
| key | value |
| header_image_data | {"url":"https:\/\/example.com\/foo.jpg"} |
Then STDOUT should contain:
"""
url https://example.com/foo.jpg
"""

@require-mysql
Scenario: Search and replace handles JSON-encoded URLs in post content
Expand Down
Loading