From b95100eb611fcf51810696f6f6f80068d9f32e30 Mon Sep 17 00:00:00 2001 From: Justin de Vesine Date: Wed, 20 Nov 2013 14:38:23 -0700 Subject: [PATCH] Functional test for autodetection of subdir install --- features/config.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/features/config.feature b/features/config.feature index 12267e57..57f9e69f 100644 --- a/features/config.feature +++ b/features/config.feature @@ -54,6 +54,19 @@ Feature: Have a config file When I run `wp core is-installed` from 'core/wp-content' Then STDOUT should be empty + Scenario: WP in a subdirectory (autodetected) + Given a WP install in 'core' + And a index.php file: + """ + require('./core/wp-blog-header.php'); + """ + + When I run `wp core is-installed` + Then STDOUT should be empty + + When I run `wp core is-installed` + Then STDOUT should be empty + Scenario: Nested installs Given a WP install And a WP install in 'subsite' -- 2.11.0