From 5cacbcfd2c3bf580a00612111945c6b870e59d38 Mon Sep 17 00:00:00 2001 From: Dylan Kuhn Date: Fri, 24 May 2013 18:22:52 -0700 Subject: [PATCH] combine similar custom taxonomy tests --- features/scaffold.feature | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/features/scaffold.feature b/features/scaffold.feature index cebd1ff7..8449990c 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -37,33 +37,23 @@ Feature: Wordpress code scaffolding # Test for all flags but --label, --theme, --plugin and --raw @tax - Scenario: Scaffold a Custom Taxonomy and attach it to a CPT zombie that is prefixed and has a text domain + Scenario: Scaffold a Custom Taxonomy and attach it to CPTs including one that is prefixed and has a text domain Given a WP install - When I run `wp scaffold taxonomy zombie-speed --post_types="prefix-zombie" --textdomain=zombieland` + When I run `wp scaffold taxonomy zombie-speed --post_types="prefix-zombie,wraith" --textdomain=zombieland` Then STDOUT should contain: """ __( 'Zombie speeds' """ And STDOUT should contain: """ - array( 'prefix-zombie' ) + array( 'prefix-zombie', 'wraith' ) """ And STDOUT should contain: """ __( 'Zombie speeds', 'zombieland' """ - @tax - Scenario: Scaffold a Custom Taxonomy and attach it to multiple post types - Given a WP install - - When I run `wp scaffold taxonomy perambulation-speed --post_types="zombie,wraith" --textdomain=zombieland` - Then STDOUT should contain: - """ - array( 'zombie', 'wraith' ) - """ - @tax Scenario: Scaffold a Custom Taxonomy with label "Speed" Given a WP install -- 2.11.0