From: Daniel Bachhuber Date: Tue, 2 Jul 2013 03:35:24 +0000 (-0700) Subject: Behat test for force-installing a specific version of a theme. X-Git-Tag: v0.11.0~42^2~10 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7979a5bd1866cb3438d679a16fcc2f7cfdc1ae12;p=wvm%2Fwvm.git Behat test for force-installing a specific version of a theme. --- diff --git a/features/theme.feature b/features/theme.feature index f7a57b5b..b599957b 100644 --- a/features/theme.feature +++ b/features/theme.feature @@ -47,3 +47,24 @@ Feature: Manage WordPress themes When I run `wp theme list` Then STDOUT should not be empty + Scenario: Install a theme, activate, then force install an older version of the theme + Given a WP install + + When I run `wp theme install p2 --version=1.4.2` + Then STDOUT should not be empty + + When I run `wp theme list` + Then STDOUT should be a table containing rows: + | name | status | update | version | + | p2 | inactive | available | 1.4.2 | + + When I run `wp theme activate p2` + Then STDOUT should not be empty + + When I run `wp theme install p2 --version=1.4.1` + Then STDOUT should not be empty + + When I run `wp theme list` + Then STDOUT should be a table containing rows: + | name | status | update | version | + | p2 | active | available | 1.4.1 |