From 7ed61de22f23390c0621ba0185d86028c9f347fd Mon Sep 17 00:00:00 2001 From: scribu Date: Tue, 12 Nov 2013 00:25:57 +0200 Subject: [PATCH] add behat test for --skip-tests --- features/plugin.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/features/plugin.feature b/features/plugin.feature index b9ebc00f..93c693a5 100644 --- a/features/plugin.feature +++ b/features/plugin.feature @@ -7,9 +7,15 @@ Feature: Manage WordPress plugins And I run `wp plugin path` And save STDOUT as {PLUGIN_DIR} + When I run `wp plugin scaffold --skip-tests plugin1` + Then STDOUT should not be empty + And the {PLUGIN_DIR}/plugin1/plugin1.php file should exist + And the {PLUGIN_DIR}/zombieland/phpunit.xml file should not exist + When I run `wp plugin scaffold zombieland --plugin_name="Zombieland"` Then STDOUT should not be empty And the {PLUGIN_DIR}/zombieland/zombieland.php file should exist + And the {PLUGIN_DIR}/zombieland/phpunit.xml file should exist When I run `wp plugin status zombieland` Then STDOUT should contain: -- 2.11.0