Skip to content

Commit 8959809

Browse files
Copilotswissspidy
andcommitted
Fix Behat test: use --all-tables-with-prefix instead of positional table name
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent f6138ca commit 8959809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/search-replace.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ Feature: Do global search/replace
15821582
And I run `wp db query "INSERT INTO wp_readonly_test (data) VALUES ('old-value');"`
15831583
And I run `wp db query "CREATE TRIGGER prevent_update BEFORE UPDATE ON wp_readonly_test FOR EACH ROW SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Table is read-only';"`
15841584

1585-
When I try `wp search-replace old-value new-value wp_readonly_test`
1585+
When I try `wp search-replace old-value new-value --all-tables-with-prefix`
15861586
Then STDERR should contain:
15871587
"""
15881588
Error updating column 'data' in table 'wp_readonly_test'

0 commit comments

Comments
 (0)