self::$additional_args = array(
'wp core config' => self::$db_settings,
- 'wp core install' => array(
- 'url' => 'http://localhost:8001',
- 'title' => 'WP CLI Site',
- 'admin_email' => 'admin@example.com',
- 'admin_password' => 'password1'
- ),
-
'wp core install-network' => array(
'title' => 'WP CLI Network'
)
$this->proc( 'wp core config', array( 'dbprefix' => $subdir ? $subdir : 'wp_' ) )->run_check( $subdir );
- $this->proc( 'wp core install' )->run_check( $subdir );
+ $install_args = array(
+ 'url' => 'http://example.com',
+ 'title' => 'WP CLI Site',
+ 'admin_email' => 'admin@example.com',
+ 'admin_password' => 'password1'
+ );
+
+ $this->proc( 'wp core install', $install_args )->run_check( $subdir );
}
}
Run `wp core install`.
"""
- When I run `wp core install`
+ When I run `wp core install --url='localhost:8001' --title='Test' --admin_email=admin@example.com --admin_password=1`
Then STDOUT should not be empty
When I run `wp eval 'echo home_url();'`