From: tolgap Date: Thu, 9 May 2013 14:41:08 +0000 (+0200) Subject: Added functional tests for the plugin and theme list command X-Git-Tag: v0.10.0~61^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4fb95a3e4f994677b1b23fbaefd5a0841ec23c93;p=wvm%2Fwvm.git Added functional tests for the plugin and theme list command --- diff --git a/features/plugin.feature b/features/plugin.feature index 88dbf054..66bdb053 100644 --- a/features/plugin.feature +++ b/features/plugin.feature @@ -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 diff --git a/features/theme.feature b/features/theme.feature index a6a57c25..4424b440 100644 --- a/features/theme.feature +++ b/features/theme.feature @@ -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