OSDN Git Service

Test for `wp comment get`
authorDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 06:04:48 +0000 (23:04 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 14:15:54 +0000 (07:15 -0700)
features/comment.feature

index 8a9d250..69dee8d 100644 (file)
@@ -18,3 +18,11 @@ Feature: Manage WordPress comments
       """
          Success: Deleted comment {COMMENT_ID}.
       """
+  
+  Scenario: Get details about an existing comment
+    Given a WP install
+
+    When I run `wp comment get 1`
+    Then STDOUT should be a table containing rows:
+      | Field           | Value          |
+      | comment_author  | Mr WordPress   |