From: jmslbam Date: Thu, 9 May 2013 16:20:27 +0000 (+0200) Subject: Added CPT creation X-Git-Tag: v0.10.0~54^2~11 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d55d5599861bcb69e318927be2c86dca98abc4d5;p=wvm%2Fwvm.git Added CPT creation --- diff --git a/features/scaffold.feature b/features/scaffold.feature index 423d373c..7f018db3 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -11,6 +11,17 @@ Feature: Wordpress code scaffolding And save STDOUT as {STYLESHEETPATH} And the {STYLESHEETPATH}/taxonomies/zombie-speed.php file should exist + Scenario: Scaffold a Custom Post Type and write it to active theme + Given a WP install + + When I run `wp scaffold post-type zombie --theme` + Then it should run without errors + + When I run `wp eval 'echo STYLESHEETPATH;'` + Then it should run without errors + And save STDOUT as {STYLESHEETPATH} + And the {STYLESHEETPATH}/post-types/zombie.php file should exist + # Test for all flags but --label, --theme, --plugin and --raw Scenario: Scaffold a Custom Taxonomy and attach it to a CPT zombie that is prefixed and has a text domain Given a WP install @@ -40,8 +51,6 @@ Feature: Wordpress code scaffolding __( 'Speed' """ - - # Test for all flags but --label, --theme, --plugin and --raw Scenario: Scaffold a Custom Post Type Given a WP install