From: Dylan Kuhn Date: Sat, 25 May 2013 01:22:52 +0000 (-0700) Subject: combine similar custom taxonomy tests X-Git-Tag: v0.10.0~36^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5cacbcfd2c3bf580a00612111945c6b870e59d38;p=wvm%2Fwvm.git combine similar custom taxonomy tests --- 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