Skip to content

Commit b5da516

Browse files
Copilotswissspidy
andcommitted
Fix test by explicitly setting option with search string
Changed test to use `wp option set` to explicitly create an option containing http://example.com, rather than relying on post generation with --post_content parameter. This ensures the test data has a guaranteed match in wp_options table that will be found by --precise mode. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 8d65105 commit b5da516

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

features/search-replace.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,8 @@ Feature: Do global search/replace
13961396
@require-mysql
13971397
Scenario: Progress bar shows when not in verbose mode
13981398
Given a WP install
1399-
And I run `wp post generate --count=100 --post_content="Visit http://example.com for more info"`
1399+
And I run `wp post generate --count=100`
1400+
And I run `wp option set test_url 'Visit http://example.com for more'`
14001401

14011402
When I run `wp search-replace http://example.com http://example.org --precise`
14021403
Then STDOUT should contain:

0 commit comments

Comments
 (0)