OSDN Git Service

Added functional tests for the plugin and theme list command
authortolgap <tolga@hoppinger.com>
Thu, 9 May 2013 14:41:08 +0000 (16:41 +0200)
committertolgap <tolga@hoppinger.com>
Thu, 9 May 2013 14:41:08 +0000 (16:41 +0200)
features/plugin.feature
features/theme.feature

index 88dbf05..66bdb05 100644 (file)
@@ -21,3 +21,7 @@ Feature: Manage WordPress plugins
       """
       Error: The plugin 'non-existent-plugin' could not be found.
       """
+
+    When I run `wp plugin list --format=json`
+    Then it should run without errors
+    And STDOUT should not be empty
index a6a57c2..4424b44 100644 (file)
@@ -49,6 +49,10 @@ Feature: Manage WordPress themes
       Error: The theme 'p2' could not be found.
       """
 
+    When I run `wp theme list`
+    Then it should run without errors
+    And STDOUT should not be empty
+
   Scenario: Upgrading a theme
     Given a WP install
     And a P2 theme zip