OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a8929
)
Add a dry run test to make sure the iterator doesn't depend on updates.
author
Dylan Kuhn
<dylan.k.kuhn@gmail.com>
Wed, 29 May 2013 04:46:44 +0000
(21:46 -0700)
committer
Dylan Kuhn
<dylan.k.kuhn@gmail.com>
Wed, 29 May 2013 04:46:44 +0000
(21:46 -0700)
features/search-replace.feature
patch
|
blob
|
history
diff --git
a/features/search-replace.feature
b/features/search-replace.feature
index
3c3b2ce
..
3cf524d
100644
(file)
--- a/
features/search-replace.feature
+++ b/
features/search-replace.feature
@@
-45,3
+45,19
@@
Feature: Do global search/replace
Table Column Replacements
wp_posts guid 1002
"""
+
+ Scenario: Large guid search/replace dry run where replacement does not contain search
+ Given a WP install
+
+ When I run `wp option get siteurl`
+
+ And save STDOUT as {SITEURL}
+
+ And I run `wp post generate --count=1000`
+
+ And I run `wp search-replace --dry-run {SITEURL} http://newdomain.com`
+ Then STDOUT should be a table containing rows:
+ """
+ Table Column Replacements
+ wp_posts guid 1002
+ """