OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93f2e48
)
A functional test for `wp theme path`
author
Daniel Bachhuber
<d@danielbachhuber.com>
Tue, 20 Aug 2013 05:24:03 +0000
(22:24 -0700)
committer
Daniel Bachhuber
<d@danielbachhuber.com>
Tue, 20 Aug 2013 05:24:03 +0000
(22:24 -0700)
features/theme.feature
patch
|
blob
|
history
diff --git
a/features/theme.feature
b/features/theme.feature
index
a42199f
..
4231fc5
100644
(file)
--- a/
features/theme.feature
+++ b/
features/theme.feature
@@
-68,3
+68,15
@@
Feature: Manage WordPress themes
Then STDOUT should be a table containing rows:
| 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
+ """