From 5fe976cdff3123015e3c63fbf26506e4689f9b35 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 22 Nov 2013 08:26:34 -0800 Subject: [PATCH] Test install via prompting --- features/core.feature | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/features/core.feature b/features/core.feature index 07849eda..59c78a4f 100644 --- a/features/core.feature +++ b/features/core.feature @@ -106,6 +106,29 @@ Feature: Manage WordPress installation http://localhost:8001 """ + Scenario: Install WordPress by prompting + Given an empty directory + And WP files + And wp-config.php + And a database + And a session file: + """ + localhost:8001 + Test + wpcli + wpcli + admin@example.com + """ + + When I run `wp core install --prompt < session` + Then STDOUT should not be empty + + When I run `wp eval 'echo home_url();'` + Then STDOUT should be: + """ + http://localhost:8001 + """ + Scenario: Full install Given a WP install -- 2.11.0