diff --git a/projects/packages/scheduled-updates/changelog/fix-scheduled-updates-coverage_warnings b/projects/packages/scheduled-updates/changelog/fix-scheduled-updates-coverage_warnings new file mode 100644 index 0000000000000..a5b7c21cb2e72 --- /dev/null +++ b/projects/packages/scheduled-updates/changelog/fix-scheduled-updates-coverage_warnings @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Code: Fix @covers annotations. diff --git a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-admin-test.php b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-admin-test.php index 86c2051995217..13080476b5c8c 100644 --- a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-admin-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-admin-test.php @@ -10,7 +10,7 @@ /** * Test class for Scheduled_Updates_Admin. * - * @coversDefaultClass Scheduled_Updates_Admin + * @coversDefaultClass Automattic\Jetpack\Scheduled_Updates_Admin */ class Scheduled_Updates_Admin_Test extends \WorDBless\BaseTestCase { /** diff --git a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-health-paths-test.php b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-health-paths-test.php index 918615ed1dc8e..5b6b98b5b02af 100644 --- a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-health-paths-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-health-paths-test.php @@ -11,7 +11,7 @@ /** * Test class for Scheduled_Updates_Health_Paths. * - * @coversDefaultClass Scheduled_Updates_Health_Paths + * @coversDefaultClass Automattic\Jetpack\Scheduled_Updates_Health_Paths */ class Scheduled_Updates_Health_Paths_Test extends \WorDBless\BaseTestCase { diff --git a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-logs-test.php b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-logs-test.php index 766531cb1381a..93fded7805d70 100644 --- a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-logs-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-logs-test.php @@ -10,7 +10,7 @@ /** * Test class for Scheduled_Updates_Logs. * - * @coversDefaultClass Scheduled_Updates_Logs + * @coversDefaultClass Automattic\Jetpack\Scheduled_Updates_Logs */ class Scheduled_Updates_Logs_Test extends \WorDBless\BaseTestCase { diff --git a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-test.php b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-test.php index 443f9cc9ed14c..0dfbbc4975468 100644 --- a/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-scheduled-updates-test.php @@ -10,7 +10,7 @@ /** * Test class for Scheduled_Updates. * - * @coversDefaultClass Scheduled_Updates + * @coversDefaultClass Automattic\Jetpack\Scheduled_Updates */ class Scheduled_Updates_Test extends \WorDBless\BaseTestCase { @@ -659,7 +659,7 @@ private function populate_file_with_plugin_header( $plugin_file, $plugin_name ) /** * Test when all requested plugins are not installed. * - * @covers ::verify_plugins + * @covers WPCOM_REST_API_V2_Endpoint_Update_Schedules::validate_plugins_param */ public function test_verify_plugins_not_installed() { $plugins = array( 'not-installed-plugin-1/not-installed-plugin-1.php', 'not-installed-plugin-2/not-installed-plugin-2.php' ); @@ -686,7 +686,7 @@ public function test_verify_plugins_not_installed() { /** * Test when all requested plugins are managed. * - * @covers ::verify_plugins + * @covers WPCOM_REST_API_V2_Endpoint_Update_Schedules::validate_plugins_param */ public function test_verify_plugins_all_managed() { $plugins = array( 'managed-plugin-1/managed-plugin-1.php', 'managed-plugin-2/managed-plugin-2.php' ); @@ -713,7 +713,7 @@ public function test_verify_plugins_all_managed() { /** * Test when one requested plugin is installed and not managed, and another is installed but managed. * - * @covers ::verify_plugins + * @covers WPCOM_REST_API_V2_Endpoint_Update_Schedules::validate_plugins_param */ public function test_verify_plugins_installed_mixed() { $plugins = array( 'managed-plugin/managed-plugin.php', 'installed-plugin/installed-plugin.php' ); diff --git a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-active-test.php b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-active-test.php index 52e61bb5aec00..63afe14864870 100644 --- a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-active-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-active-test.php @@ -91,7 +91,7 @@ public function tear_down() { /** * Test update_item. * - * @covers update_item + * @covers ::update_item */ public function test_active_is_true_by_default() { $plugins = array( 'gutenberg/gutenberg.php' ); @@ -124,7 +124,7 @@ public function test_active_is_true_by_default() { /** * Test update_item. * - * @covers update_item + * @covers ::update_item */ public function test_set_active_false_update_active_flag() { $plugins = array( @@ -179,7 +179,7 @@ public function test_set_active_false_update_active_flag() { /** * Test update_item. * - * @covers update_item + * @covers ::update_item */ public function test_run_inactive_schedule() { $plugins = array( @@ -217,7 +217,7 @@ public function test_run_inactive_schedule() { /** * Test update_item. * - * @covers update_item + * @covers ::update_item */ public function test_run_active_schedule() { $plugins = array( 'gutenberg/gutenberg.php' ); @@ -251,7 +251,7 @@ public function test_run_active_schedule() { /** * Test update_item update cron. * - * @covers update_item + * @covers ::update_item */ public function test_set_active_false_update_sync_option() { $plugins = array( diff --git a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php index 2381dcecae470..f3cafd5c8e99b 100644 --- a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php @@ -385,7 +385,7 @@ public function test_updating_autoupdate_plugins_on_create() { /** * Can't have more than two schedules. * - * @covers ::create + * @covers ::create_item */ public function test_empty_last_run() { $plugins = array( 'gutenberg/gutenberg.php' );