File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1207,7 +1207,7 @@ Feature: Do global search/replace
12071207 Scenario : The search_replace_unserialize_options hook allows overriding allowed_classes for unserialize
12081208
12091209 Given a WP install
1210- And I run `wp option add cereal_isation 'O:8:"stdClass":1:{s:3:"foo";s:3:"bar ";}' `
1210+ And I run `wp option add cereal_isation 'O:8:"stdClass":1:{s:3:"foo";s:13:"cereal_marker ";}' `
12111211 And a hook.php file:
12121212 """
12131213 <?php
@@ -1216,7 +1216,7 @@ Feature: Do global search/replace
12161216 } );
12171217 """
12181218
1219- When I try `wp search-replace bar baz `
1219+ When I try `wp search-replace cereal_marker cereal_replaced `
12201220 Then STDERR should contain:
12211221 """
12221222 Warning: Skipping an uninitialized class "stdClass", replacements might not be complete.
@@ -1226,7 +1226,7 @@ Feature: Do global search/replace
12261226 Success: Made 0 replacements.
12271227 """
12281228
1229- When I run `wp --require=hook.php search-replace bar baz `
1229+ When I run `wp --require=hook.php search-replace cereal_marker cereal_replaced `
12301230 Then STDERR should be empty
12311231 And STDOUT should contain:
12321232 """
You can’t perform that action at this time.
0 commit comments