OSDN Git Service

Test filtering based on object attribute
authorDaniel Bachhuber <d@danielbachhuber.com>
Fri, 22 Nov 2013 18:21:11 +0000 (10:21 -0800)
committerDaniel Bachhuber <d@danielbachhuber.com>
Fri, 22 Nov 2013 18:21:11 +0000 (10:21 -0800)
features/plugin.feature

index be9c51c..da76795 100644 (file)
@@ -88,3 +88,16 @@ Feature: Manage WordPress plugins
     Then STDOUT should be a table containing rows:
       | name       | status   | update    | version   |
       | akismet    | active   | available | 2.5.6     |
+
+
+  Scenario: List plugins
+    When I run `wp plugin activate akismet hello`
+    Then STDOUT should not be empty
+
+    When I run `wp plugin list --status=inactive`
+    Then STDOUT should be empty
+
+    When I run `wp plugin list --status=active`
+    Then STDOUT should be a table containing rows:
+      | name       | status   | update    | version   |
+      | akismet    | active   | available | 2.5.6     |