From 5f6db53478f7e462dd189e349e99a6f4b4d95828 Mon Sep 17 00:00:00 2001 From: jmslbam Date: Thu, 4 Apr 2013 23:51:02 +0200 Subject: [PATCH] Added label scaffold behat test --- features/scaffold.feature | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 features/scaffold.feature diff --git a/features/scaffold.feature b/features/scaffold.feature new file mode 100644 index 00000000..4a041b95 --- /dev/null +++ b/features/scaffold.feature @@ -0,0 +1,22 @@ +Feature: Wordpress code scaffolding + + @Custom Post Types + Scenario: Scaffold a Custom Post Type with label + Given a WP install + + When I run `wp scaffold post-type zombie --label="Brain eater"` + Then it should run without errors + And STDOUT should contain: + """ + __( 'Brain eaters' + """ + + Scenario: Scaffold a Custom Post Type without the label flag + Given a WP install + + When I run `wp scaffold post-type zombie` + Then it should run without errors + And STDOUT should contain: + """ + __( 'Zombies' + """ \ No newline at end of file -- 2.11.0