diff --git a/entity-command.php b/entity-command.php index f5a4e47d8..95a35c85e 100644 --- a/entity-command.php +++ b/entity-command.php @@ -30,7 +30,7 @@ WP_CLI::add_command( 'site option', 'Site_Option_Command', array( 'before_invoke' => function() { if ( !is_multisite() ) { - WP_CLI::error( 'This is not a multisite install.' ); + WP_CLI::error( 'This is not a multisite installation.' ); } } ) ); diff --git a/features/site-empty.feature b/features/site-empty.feature index bc30d40e4..f04fe85c3 100644 --- a/features/site-empty.feature +++ b/features/site-empty.feature @@ -1,7 +1,7 @@ Feature: Empty a WordPress site of its data Scenario: Empty a site - Given a WP install + Given a WP installation And I run `wp option update uploads_use_yearmonth_folders 0` And download: | path | url | @@ -13,7 +13,7 @@ Feature: Empty a WordPress site of its data When I try `wp site url 1` Then STDERR should be: """ - Error: This is not a multisite install. + Error: This is not a multisite installation. """ And the return code should be 1 @@ -43,7 +43,7 @@ Feature: Empty a WordPress site of its data Then STDOUT should be empty Scenario: Empty a site and its uploads directory - Given a WP multisite install + Given a WP multisite installation And I run `wp site create --slug=foo` And I run `wp --url=example.com/foo option update uploads_use_yearmonth_folders 0` And download: diff --git a/features/site-option.feature b/features/site-option.feature index 98d4088df..de14b84a7 100644 --- a/features/site-option.feature +++ b/features/site-option.feature @@ -1,7 +1,7 @@ Feature: Manage WordPress site options Scenario: Site Option CRUD - Given a WP multisite install + Given a WP multisite installation # String values When I run `wp site option add str_opt 'bar'` @@ -111,24 +111,24 @@ Feature: Manage WordPress site options """ Scenario: Error on single install - Given a WP install + Given a WP installation When I try `wp site option get str_opt` Then STDERR should be: """ - Error: This is not a multisite install. + Error: This is not a multisite installation. """ And the return code should be 1 When I try `wp site option add str_opt 'bar'` Then STDERR should be: """ - Error: This is not a multisite install. + Error: This is not a multisite installation. """ And the return code should be 1 Scenario: Filter options by `--site_id` - Given a WP multisite install + Given a WP multisite installation When I run `wp db query "INSERT INTO wp_sitemeta (site_id,meta_key,meta_value) VALUES (2,'wp_cli_test_option','foobar');"` Then the return code should be 0 diff --git a/src/Site_Command.php b/src/Site_Command.php index d2d2aea91..7de0cfc94 100644 --- a/src/Site_Command.php +++ b/src/Site_Command.php @@ -1,7 +1,7 @@