From d55d5599861bcb69e318927be2c86dca98abc4d5 Mon Sep 17 00:00:00 2001 From: jmslbam Date: Thu, 9 May 2013 18:20:27 +0200 Subject: [PATCH] Added CPT creation --- features/scaffold.feature | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 -- 2.11.0