When I run `wp core is-installed` from 'core/wp-content'
Then STDOUT should be empty
+ When I run `mkdir -p other/subdir`
+ And I run `wp core is-installed` from 'other/subdir'
+ Then STDOUT should be empty
+
Scenario: WP in a subdirectory (autodetected)
Given a WP install in 'core'
When I run `wp core is-installed`
Then STDOUT should be empty
+ When I run `mkdir -p other/subdir`
+ And I run `wp core is-installed` from 'other/subdir'
+ Then STDOUT should be empty
+
Scenario: Nested installs
Given a WP install
And a WP install in 'subsite'
return dirname( $wp_load_path );
}
- return self::extract_subdir_path( getcwd() . '/index.php' );
+ return self::extract_subdir_path( Utils\find_file_upward( 'index.php' ) );
}
private static function set_wp_root( $path ) {