diff --git a/tests/unit/actions/importing/aioseo-cleanup-action-test.php b/tests/unit/actions/importing/aioseo-cleanup-action-test.php index a7c9fccc2a9..d88ff95794b 100644 --- a/tests/unit/actions/importing/aioseo-cleanup-action-test.php +++ b/tests/unit/actions/importing/aioseo-cleanup-action-test.php @@ -120,7 +120,6 @@ public function test_get_limited_unindexed_count( $table_exists, $completed_opti * @covers ::cleanup_postmeta_query * @covers ::truncate_query * @covers ::get_postmeta_table - * @covers ::get_aioseo_table * * @param array $completed_option The persistent completed option. * @param int $query_times The times we're gonna run the cleanup queries. diff --git a/tests/unit/actions/indexing/abstract-link-indexing-action-test.php b/tests/unit/actions/indexing/abstract-link-indexing-action-test.php index 15173414cee..5dd187d3366 100644 --- a/tests/unit/actions/indexing/abstract-link-indexing-action-test.php +++ b/tests/unit/actions/indexing/abstract-link-indexing-action-test.php @@ -17,7 +17,7 @@ * @group actions * @group indexing * - * @coversDefaultClass \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action + * @coversDefaultClass \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action */ class Abstract_Link_Indexing_Action_Test extends TestCase { diff --git a/tests/unit/actions/indexing/indexable-post-indexation-action-test.php b/tests/unit/actions/indexing/indexable-post-indexation-action-test.php index acf83a6c71a..bec131a7267 100644 --- a/tests/unit/actions/indexing/indexable-post-indexation-action-test.php +++ b/tests/unit/actions/indexing/indexable-post-indexation-action-test.php @@ -101,7 +101,6 @@ protected function set_up() { * @covers ::__construct * @covers ::get_total_unindexed * @covers ::get_count_query - * @covers ::get_post_types */ public function test_get_total_unindexed() { $expected_query = " @@ -133,7 +132,6 @@ public function test_get_total_unindexed() { * Tests the get_limited_unindexed_count method with a limit. * * @covers ::__construct - * @covers ::get_post_types * @covers ::get_select_query */ public function test_get_limited_unindexed_count() { @@ -175,7 +173,6 @@ public function test_get_limited_unindexed_count() { * * @covers ::__construct * @covers ::get_total_unindexed - * @covers ::get_post_types */ public function test_get_total_unindexed_cached() { Functions\expect( 'get_transient' )->once()->with( 'wpseo_total_unindexed_posts' )->andReturn( '10' ); @@ -211,7 +208,6 @@ public function test_get_total_unindexed_failed_query() { * * @covers ::__construct * @covers ::get_total_unindexed - * @covers ::get_post_types */ public function test_get_total_unindexed_with_excluded_post_types() { $public_post_types = [ 'public_post_type' ]; @@ -248,7 +244,6 @@ public function test_get_total_unindexed_with_excluded_post_types() { * @covers ::__construct * @covers ::index * @covers ::get_limit - * @covers ::get_post_types */ public function test_index() { $expected_query = " @@ -328,7 +323,6 @@ public function test_index_with_limit_filter_no_int() { * @covers ::__construct * @covers ::index * @covers ::get_limit - * @covers ::get_post_types */ public function test_index_with_excluded_post_types() { $public_post_types = [ 'public_post_type' ]; @@ -384,7 +378,6 @@ public function test_index_with_excluded_post_types() { * @covers ::__construct * @covers ::index * @covers ::get_limit - * @covers ::get_post_types */ public function test_index_no_indexables_created() { $expected_query = " diff --git a/tests/unit/actions/indexing/post-link-indexing-action-test.php b/tests/unit/actions/indexing/post-link-indexing-action-test.php index 42acb5d185c..2714ae3ea7a 100644 --- a/tests/unit/actions/indexing/post-link-indexing-action-test.php +++ b/tests/unit/actions/indexing/post-link-indexing-action-test.php @@ -100,7 +100,7 @@ public function test_set_helper() { * Tests getting the total unindexed. * * @covers ::get_count_query - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_total_unindexed + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::get_total_unindexed */ public function test_get_total_unindexed() { Functions\expect( 'get_transient' ) @@ -155,7 +155,6 @@ public function test_get_total_unindexed() { * @covers ::get_count_query * @covers ::get_total_unindexed * @covers ::get_limited_unindexed_count - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_total_unindexed */ public function test_get_limited_unindexed_count() { Functions\expect( 'get_transient' ) @@ -281,7 +280,6 @@ public function test_index() { * Tests the index function. * * @covers ::get_objects - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::index */ public function test_index_without_link_count() { Filters\expectApplied( 'wpseo_link_indexing_limit' ); diff --git a/tests/unit/actions/indexing/term-link-indexing-action-test.php b/tests/unit/actions/indexing/term-link-indexing-action-test.php index 0680fbe4653..59dd4ad7e15 100644 --- a/tests/unit/actions/indexing/term-link-indexing-action-test.php +++ b/tests/unit/actions/indexing/term-link-indexing-action-test.php @@ -100,7 +100,7 @@ public function test_set_helper() { * Tests getting the unindexed count with a limit. * * @covers ::get_count_query - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_total_unindexed + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::get_total_unindexed */ public function test_get_total_unindexed() { $expected_query = " @@ -148,7 +148,7 @@ public function test_get_total_unindexed() { * * @covers ::get_count_query * @covers ::get_total_unindexed - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_limited_unindexed_count + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::get_limited_unindexed_count */ public function test_get_limited_unindexed_count() { $expected_query = " @@ -194,7 +194,7 @@ public function test_get_limited_unindexed_count() { /** * Tests getting the total unindexed. * - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_total_unindexed + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::get_total_unindexed */ public function test_get_total_unindexed_cached() { Functions\expect( 'get_transient' ) @@ -208,7 +208,7 @@ public function test_get_total_unindexed_cached() { /** * Tests getting the total unindexed. * - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::get_total_unindexed + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::get_total_unindexed */ public function test_get_total_unindexed_failed_query() { Functions\expect( 'get_transient' ) @@ -255,7 +255,7 @@ public function test_get_total_unindexed_failed_query() { * Tests the index function. * * @covers ::get_objects - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::index + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::index */ public function test_index() { Filters\expectApplied( 'wpseo_link_indexing_limit' ); @@ -322,7 +322,7 @@ public function test_index() { * Tests the index function. * * @covers ::get_objects - * @covers \Yoast\WP\SEO\Actions\Indexation\Abstract_Link_Indexing_Action::index + * @covers \Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action::index */ public function test_index_without_link_count() { Filters\expectApplied( 'wpseo_link_indexing_limit' ); diff --git a/tests/unit/conditionals/front-end-conditional-test.php b/tests/unit/conditionals/front-end-conditional-test.php index 9177e2c602f..03416f2d8b0 100644 --- a/tests/unit/conditionals/front-end-conditional-test.php +++ b/tests/unit/conditionals/front-end-conditional-test.php @@ -31,15 +31,6 @@ public function set_up() { $this->instance = new Front_End_Conditional(); } - /** - * Tests if the needed attributes are set correctly. - * - * @covers ::__construct - */ - public function test_construct() { - $this->assertInstanceOf( Front_End_Conditional::class, $this->instance ); - } - /** * Tests that the conditional is met when is_admin is false. * diff --git a/tests/unit/exceptions/importing/aioseo-validation-exception-test.php b/tests/unit/exceptions/importing/aioseo-validation-exception-test.php index 64ab7ba0754..9073944a05d 100644 --- a/tests/unit/exceptions/importing/aioseo-validation-exception-test.php +++ b/tests/unit/exceptions/importing/aioseo-validation-exception-test.php @@ -10,7 +10,7 @@ * * @group exceptions * - * @coversDefaultClass \Yoast\WP\SEO\Exceptions\Indexable\Aioseo_Validation_Exception + * @coversDefaultClass \Yoast\WP\SEO\Exceptions\Importing\Aioseo_Validation_Exception */ class Aioseo_Validation_Exception_Test extends TestCase { diff --git a/tests/unit/helpers/crawl-cleanup-helper-test.php b/tests/unit/helpers/crawl-cleanup-helper-test.php index 21167372360..d1578c2c121 100644 --- a/tests/unit/helpers/crawl-cleanup-helper-test.php +++ b/tests/unit/helpers/crawl-cleanup-helper-test.php @@ -15,7 +15,7 @@ /** * Class Crawl_Cleanup_Helper_Test. * - * @coversDefaultClass \Yoast\WP\SEO\Initializers\Crawl_Cleanup_Helper + * @coversDefaultClass \Yoast\WP\SEO\Helpers\Crawl_Cleanup_Helper * * @group integrations */ diff --git a/tests/unit/initializers/woocommerce-test.php b/tests/unit/initializers/woocommerce-test.php index 67591da72fa..938d89fa624 100644 --- a/tests/unit/initializers/woocommerce-test.php +++ b/tests/unit/initializers/woocommerce-test.php @@ -33,7 +33,6 @@ protected function set_up() { /** * Tests the initialization. * - * @covers ::__construct * @covers ::initialize */ public function test_initialize() { diff --git a/tests/unit/integrations/cleanup-integration-test.php b/tests/unit/integrations/cleanup-integration-test.php index 2296bfa65ad..3ef22ffccec 100644 --- a/tests/unit/integrations/cleanup-integration-test.php +++ b/tests/unit/integrations/cleanup-integration-test.php @@ -86,9 +86,6 @@ public function test_get_conditionals() { * * @covers ::run_cleanup * @covers ::get_cleanup_tasks - * @covers ::clean_indexables_with_object_type_and_object_sub_type - * @covers ::clean_indexables_with_post_status - * @covers ::cleanup_orphaned_from_table * @covers ::get_limit * @covers ::reset_cleanup */ @@ -125,9 +122,6 @@ public function test_run_cleanup() { * * @covers ::run_cleanup * @covers ::get_cleanup_tasks - * @covers ::clean_indexables_with_object_type_and_object_sub_type - * @covers ::clean_indexables_with_post_status - * @covers ::cleanup_orphaned_from_table * @covers ::get_limit * @covers ::reset_cleanup */ @@ -157,7 +151,6 @@ public function test_run_cleanup_db_query_failed() { * @covers ::get_cleanup_tasks * @covers ::get_limit * @covers ::reset_cleanup - * @covers ::clean_indexables_with_object_type_and_object_sub_type * @covers ::start_cron_job */ public function test_run_cleanup_starts_cron_job() { @@ -226,7 +219,6 @@ public function test_run_cleanup_cron_next_task() { * @covers ::run_cleanup_cron * @covers ::get_cleanup_tasks * @covers ::get_limit - * @covers ::cleanup_orphaned_from_table * @covers ::start_cron_job */ public function test_run_cleanup_cron_last_task() { diff --git a/tests/unit/integrations/front-end/robots-txt-integration-test.php b/tests/unit/integrations/front-end/robots-txt-integration-test.php index f69b5c3969e..278bff12f17 100644 --- a/tests/unit/integrations/front-end/robots-txt-integration-test.php +++ b/tests/unit/integrations/front-end/robots-txt-integration-test.php @@ -119,8 +119,7 @@ public function test_register_hooks() { * Tests the robots filter for a public site, with sitemaps. * * @covers ::filter_robots - * @covers ::change_default_robots - * @covers ::add_xml_sitemap + * @covers ::maybe_add_xml_sitemap */ public function test_public_site_with_sitemaps() { global $wp_rewrite; @@ -174,8 +173,7 @@ public function test_public_site_with_sitemaps() { * @dataProvider multisite_provider * * @covers ::filter_robots - * @covers ::change_default_robots - * @covers ::add_xml_sitemap + * @covers ::maybe_add_xml_sitemap * @covers ::add_subdirectory_multisite_xml_sitemaps * @covers ::get_xml_sitemaps_enabled * @covers ::is_sitemap_allowed @@ -300,8 +298,7 @@ public function multisite_provider() { * Tests the robots filter for multisite installations, other site without Yoast SEO activated. * * @covers ::filter_robots - * @covers ::change_default_robots - * @covers ::add_xml_sitemap + * @covers ::maybe_add_xml_sitemap * @covers ::add_subdirectory_multisite_xml_sitemaps * @covers ::get_xml_sitemaps_enabled * @covers ::is_sitemap_allowed @@ -382,8 +379,7 @@ public function test_multisite_sitemaps_without_yoast_seo_active() { * Tests the robots filter for a multisite subdirectory installation without any existing option rows. * * @covers ::filter_robots - * @covers ::change_default_robots - * @covers ::add_xml_sitemap + * @covers ::maybe_add_xml_sitemap * @covers ::add_subdirectory_multisite_xml_sitemaps * @covers ::get_xml_sitemaps_enabled * @covers ::is_sitemap_allowed @@ -463,8 +459,7 @@ public function test_multisite_sitemaps_option_not_found() { * Tests the robots filter for a public site, without sitemaps. * * @covers ::filter_robots - * @covers ::change_default_robots - * @covers ::add_xml_sitemap + * @covers ::maybe_add_xml_sitemap */ public function test_public_site_without_sitemaps() { $this->options_helper diff --git a/tests/unit/integrations/settings-integration-test.php b/tests/unit/integrations/settings-integration-test.php index c094d2d4a3b..56af39e14f5 100644 --- a/tests/unit/integrations/settings-integration-test.php +++ b/tests/unit/integrations/settings-integration-test.php @@ -83,7 +83,7 @@ public function test_get_conditionals() { /** * Tests the addition of a submenu page. * - * @covers ::add_submenu_page + * @covers ::add_settings_saved_page */ public function test_add_submenu_page() { diff --git a/tests/unit/integrations/third-party/woocommerce-test.php b/tests/unit/integrations/third-party/woocommerce-test.php index 61cd2ac85ab..f4e784a2171 100644 --- a/tests/unit/integrations/third-party/woocommerce-test.php +++ b/tests/unit/integrations/third-party/woocommerce-test.php @@ -232,7 +232,6 @@ public function test_get_page_id_for_non_shop_page() { * Tests the situation where the WooCommerce function doesn't exist (for some reason). * * @covers ::get_page_id - * @covers ::get_shop_page_id */ public function test_get_page_id_when_woocommerce_function_does_not_exist() { // Sets the stubs. @@ -250,7 +249,6 @@ public function test_get_page_id_when_woocommerce_function_does_not_exist() { * Tests the happy path where we have a page id. * * @covers ::get_page_id - * @covers ::get_shop_page_id */ public function test_get_page_id() { $this->woocommerce_helper->expects( 'is_shop_page' ) @@ -270,8 +268,6 @@ public function test_get_page_id() { * @dataProvider meta_value_provider * * @covers ::title - * @covers ::is_shop_page - * @covers ::get_shop_page_id * * @param string $expected The expected value. * @param string $model_value Value that is set as indexable title. @@ -315,8 +311,6 @@ public function test_title( $expected, $model_value, $template_value, $is_shop_p * @dataProvider meta_value_provider * * @covers ::description - * @covers ::is_shop_page - * @covers ::get_shop_page_id * * @param string $expected The expected value. * @param string $model_value Value that is set as indexable title. diff --git a/tests/unit/presentations/indexable-presentation/permalink-test.php b/tests/unit/presentations/indexable-presentation/permalink-test.php index a6c376cbd7b..ca1db56e0d1 100644 --- a/tests/unit/presentations/indexable-presentation/permalink-test.php +++ b/tests/unit/presentations/indexable-presentation/permalink-test.php @@ -53,7 +53,6 @@ public function test_get_permalink() { * Tests the permalink getter method with dynamic permalinks enabled. * * @covers ::generate_permalink - * @covers ::get_permalink */ public function test_get_permalink_with_dynamic_permalinks() { $this->indexable->permalink = 'https://example.com/permalink/'; diff --git a/tests/unit/surfaces/helpers-surface-test.php b/tests/unit/surfaces/helpers-surface-test.php index cdc48e3a02a..1d4511df121 100644 --- a/tests/unit/surfaces/helpers-surface-test.php +++ b/tests/unit/surfaces/helpers-surface-test.php @@ -65,7 +65,7 @@ public function test_magic_get( $helper_name, $classname ) { /** * The get method should rethrow exceptions from the container. * - * @covers ::get + * @covers ::__get * @dataProvider provide_classes * * @param string $helper_name Helper name. diff --git a/tests/unit/surfaces/open-graph-helpers-surface-test.php b/tests/unit/surfaces/open-graph-helpers-surface-test.php index 6e590f7f09d..f3ea99b6be9 100644 --- a/tests/unit/surfaces/open-graph-helpers-surface-test.php +++ b/tests/unit/surfaces/open-graph-helpers-surface-test.php @@ -65,7 +65,7 @@ public function test_magic_get( $helper_name, $classname ) { /** * The get method should rethrow exceptions from the container. * - * @covers ::get + * @covers ::__get * @dataProvider provide_classes * * @param string $helper_name Helper name. diff --git a/tests/unit/surfaces/schema-helpers-surface-test.php b/tests/unit/surfaces/schema-helpers-surface-test.php index ae56677c3cc..eff066823ab 100644 --- a/tests/unit/surfaces/schema-helpers-surface-test.php +++ b/tests/unit/surfaces/schema-helpers-surface-test.php @@ -65,7 +65,7 @@ public function test_magic_get( $helper_name, $classname ) { /** * The get method should rethrow exceptions from the container. * - * @covers ::get + * @covers ::__get * @dataProvider provide_classes * * @param string $helper_name Helper name. diff --git a/tests/unit/surfaces/twitter-helpers-surface-test.php b/tests/unit/surfaces/twitter-helpers-surface-test.php index 99f2dde28fa..f2244d80958 100644 --- a/tests/unit/surfaces/twitter-helpers-surface-test.php +++ b/tests/unit/surfaces/twitter-helpers-surface-test.php @@ -65,7 +65,7 @@ public function test_magic_get( $helper_name, $classname ) { /** * The get method should rethrow exceptions from the container. * - * @covers ::get + * @covers ::__get * @dataProvider provide_classes * * @param string $helper_name Helper name.