OSDN Git Service

behat: work around bug in WP 3.4.2 related to serializing custom fields
authorscribu <mail@scribu.net>
Sun, 19 May 2013 18:06:55 +0000 (21:06 +0300)
committerscribu <mail@scribu.net>
Sun, 19 May 2013 18:06:55 +0000 (21:06 +0300)
features/post-meta.feature

index 664417b..5c3ecd1 100644 (file)
@@ -12,13 +12,13 @@ Feature: Manage post custom fields
     bar
     """
 
-    When I run `wp post-meta set 1 foo '[ 1, 2 ]' --format=json`
+    When I run `wp post-meta set 1 foo '[ "1", "2" ]' --format=json`
     Then STDOUT should not be empty
 
     When I run `wp post-meta get 1 foo --format=json`
     Then STDOUT should be:
     """
-    [1,2]
+    ["1","2"]
     """
 
     When I run `wp post-meta delete 1 foo`