OSDN Git Service

Merge branch 'master' into fix-theme-path
authorDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 14:12:09 +0000 (07:12 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Tue, 20 Aug 2013 14:12:09 +0000 (07:12 -0700)
Conflicts:
features/theme.feature

1  2 
features/theme.feature
php/commands/theme.php

@@@ -69,14 -69,13 +69,25 @@@ Feature: Manage WordPress theme
        | name  | status   | update    | version   |
        | p2    | active   | available | 1.4.1     |
  
 +  Scenario: Get the path of an installed theme
 +    Given a WP install
 +
 +    When I run `wp theme install twentyeleven`
 +    Then STDOUT should not be empty
 +
 +    When I run `wp theme path twentyeleven --dir`
 +    Then STDOUT should contain:
 +       """
 +       wp-content/themes/twentyeleven
 +       """
++
+   Scenario: Get details about an installed theme
+     Given a WP install
+     When I run `wp theme install p2`
+     Then STDOUT should not be empty
+     When I run `wp theme get p2`
+     Then STDOUT should be a table containing rows:
+       | Field | Value          |
+       | name  | P2             |
Simple merge