Skip to content

Commit 5df5c19

Browse files
swissspidyCopilot
andauthored
Fix failing header_image_data test (#243)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 998fd58 commit 5df5c19

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎features/search-replace.feature‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ Feature: Do global search/replace
256256
And I run `wp eval-file setup-theme-mod.php`
257257

258258
When I run `wp theme mod get header_image_data`
259-
Then STDOUT should be a table containing rows:
260-
| key | value |
261-
| header_image_data | {"url":"https:\/\/subdomain.example.com\/foo.jpg"} |
259+
Then STDOUT should contain:
260+
"""
261+
https://subdomain.example.com/foo.jpg
262+
"""
262263

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

273274
When I run `wp theme mod get header_image_data`
274-
Then STDOUT should be a table containing rows:
275-
| key | value |
276-
| header_image_data | {"url":"https:\/\/example.com\/foo.jpg"} |
275+
Then STDOUT should contain:
276+
"""
277+
url https://example.com/foo.jpg
278+
"""
277279

278280
@require-mysql
279281
Scenario: Search and replace handles JSON-encoded URLs in post content

0 commit comments

Comments
 (0)