OSDN Git Service

Generate only as many posts as needed to test chunking.
authorDylan Kuhn <dylan.k.kuhn@gmail.com>
Tue, 28 May 2013 13:56:53 +0000 (06:56 -0700)
committerDylan Kuhn <dylan.k.kuhn@gmail.com>
Tue, 28 May 2013 13:56:53 +0000 (06:56 -0700)
features/search-replace.feature

index 2d946ae..3c3b2ce 100644 (file)
@@ -22,13 +22,13 @@ Feature: Do global search/replace
    
     And save STDOUT as {SITEURL}
 
-    And I run `wp post generate --count=1200`
+    And I run `wp post generate --count=1000`
 
     And I run `wp search-replace {SITEURL} {SITEURL}/subdir`
     Then STDOUT should be a table containing rows:
     """
     Table      Column  Replacements
-    wp_posts   guid    1202
+    wp_posts   guid    1002
     """
   Scenario: Large guid search/replace where replacement does not contain search
     Given a WP install
@@ -37,11 +37,11 @@ Feature: Do global search/replace
 
     And save STDOUT as {SITEURL}
 
-    And I run `wp post generate --count=1200`
+    And I run `wp post generate --count=1000`
 
     And I run `wp search-replace {SITEURL} http://newdomain.com`
     Then STDOUT should be a table containing rows:
     """
     Table      Column  Replacements
-    wp_posts   guid    1202
+    wp_posts   guid    1002
     """