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
10 changes: 10 additions & 0 deletions features/search-replace.feature
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ Feature: Do global search/replace
1 rows affected
"""

# See https://github.com/wp-cli/search-replace-command/issues/190
@skip-sqlite
Scenario: Regex search/replace
Given a WP install
When I run `wp search-replace '(Hello)\s(world)' '$2, $1' --regex`
Expand Down Expand Up @@ -959,6 +961,8 @@ Feature: Do global search/replace
"""
And STDERR should be empty

# See https://github.com/wp-cli/search-replace-command/issues/190
@skip-sqlite
Scenario: Logging with regex replace
Given a WP install

Expand Down Expand Up @@ -1321,6 +1325,8 @@ Feature: Do global search/replace
[field_count] => 2
"""

# See https://github.com/wp-cli/search-replace-command/issues/190
@skip-sqlite
Scenario: Regex search/replace with `--regex-limit=1` option
Given a WP install
And I run `wp post create --post_content="I have a pen, I have an apple. Pen, pine-apple, apple-pen."`
Expand All @@ -1331,6 +1337,8 @@ Feature: Do global search/replace
I have a pen, I have an orange. Pen, pine-apple, apple-pen.
"""

# See https://github.com/wp-cli/search-replace-command/issues/190
@skip-sqlite
Scenario: Regex search/replace with `--regex-limit=2` option
Given a WP install
And I run `wp post create --post_content="I have a pen, I have an apple. Pen, pine-apple, apple-pen."`
Expand All @@ -1341,6 +1349,8 @@ Feature: Do global search/replace
I have a pen, I have an orange. Pen, pine-orange, apple-pen.
"""

# See https://github.com/wp-cli/search-replace-command/issues/190
@skip-sqlite
Scenario: Regex search/replace with incorrect or default `--regex-limit`
Given a WP install
When I try `wp search-replace '(Hello)\s(world)' '$2, $1' --regex --regex-limit=asdf`
Expand Down
Loading