When I try `wp core is-installed`
Then the return code should be 1
- And STDERR should be:
- """
- Error: The site you have requested is not installed.
- Run `wp core install`.
- """
When I try `wp core install`
Then the return code should be 1
exit;
}
+ if ( $this->cmd_starts_with( array( 'core', 'is-installed' ) ) ) {
+ define( 'WP_INSTALLING', true );
+ }
+
if (
count( $this->arguments ) >= 2 &&
$this->arguments[0] == 'core' &&
- in_array( $this->arguments[1], array( 'install', 'multisite-install', 'is-installed' ) )
+ in_array( $this->arguments[1], array( 'install', 'multisite-install' ) )
) {
define( 'WP_INSTALLING', true );