From aa83121b9fe389ad3f95e4d80baed9782ebb72a0 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Tue, 2 Nov 2021 22:00:44 +0000 Subject: [PATCH] Build/Test Tools: Add missing `@covers` tags for `Tests_Admin_includesListTable`. Follow-up to [31730]. Props pbearne, jrf, hellofromTonya. See #39265. git-svn-id: https://develop.svn.wordpress.org/trunk@51993 602fd350-edb4-49c9-b593-d223f7449a82 --- .../phpunit/tests/admin/includesListTable.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php index af589dcfe6..035d645764 100644 --- a/tests/phpunit/tests/admin/includesListTable.php +++ b/tests/phpunit/tests/admin/includesListTable.php @@ -75,6 +75,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_list_hierarchical_pages_first_page() { $this->_test_list_hierarchical_page( @@ -91,6 +94,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_list_hierarchical_pages_second_page() { $this->_test_list_hierarchical_page( @@ -108,6 +114,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_search_hierarchical_pages_first_page() { $this->_test_list_hierarchical_page( @@ -125,6 +134,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_search_hierarchical_pages_second_page() { $this->_test_list_hierarchical_page( @@ -142,6 +154,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_grandchildren_hierarchical_pages_first_page() { // Page 6 is the first page with grandchildren. @@ -161,6 +176,9 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 15459 + * + * @covers WP_Posts_List_Table::display_rows + * @covers WP_Posts_List_Table::set_hierarchical_display */ function test_grandchildren_hierarchical_pages_second_page() { // Page 7 is the second page with grandchildren. @@ -239,6 +257,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 37407 + * + * @covers WP_Posts_List_Table::extra_tablenav */ function test_filter_button_should_not_be_shown_if_there_are_no_posts() { // Set post type to a non-existent one. @@ -253,6 +273,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 37407 + * + * @covers WP_Posts_List_Table::extra_tablenav */ function test_months_dropdown_should_not_be_shown_if_there_are_no_posts() { // Set post type to a non-existent one. @@ -267,6 +289,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 37407 + * + * @covers WP_Posts_List_Table::extra_tablenav */ function test_category_dropdown_should_not_be_shown_if_there_are_no_posts() { // Set post type to a non-existent one. @@ -281,6 +305,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 38341 + * + * @covers WP_Posts_List_Table::extra_tablenav */ public function test_empty_trash_button_should_not_be_shown_if_there_are_no_posts() { // Set post type to a non-existent one. @@ -295,6 +321,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 40188 + * + * @covers WP_Posts_List_Table::extra_tablenav */ public function test_filter_button_should_not_be_shown_if_there_are_no_comments() { $table = _get_list_table( 'WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); @@ -308,6 +336,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 40188 + * + * @covers WP_Posts_List_Table::extra_tablenav */ public function test_filter_button_should_be_shown_if_there_are_comments() { $post_id = self::factory()->post->create(); @@ -330,6 +360,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 40188 + * + * @covers WP_Posts_List_Table::extra_tablenav */ public function test_filter_comment_type_dropdown_should_be_shown_if_there_are_comments() { $post_id = self::factory()->post->create(); @@ -353,6 +385,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 38341 + * + * @covers WP_Posts_List_Table::extra_tablenav */ public function test_empty_trash_button_should_not_be_shown_if_there_are_no_comments() { $table = _get_list_table( 'WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); @@ -366,6 +400,8 @@ class Tests_Admin_IncludesListTable extends WP_UnitTestCase { /** * @ticket 19278 + * + * @covers WP_Posts_List_Table::bulk_actions */ public function test_bulk_action_menu_supports_options_and_optgroups() { $table = _get_list_table( 'WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); @@ -401,6 +437,8 @@ OPTIONS; /** * @ticket 45089 + * + * @covers WP_Posts_List_Table::print_column_headers */ public function test_sortable_columns() { require_once ABSPATH . 'wp-admin/includes/class-wp-comments-list-table.php'; @@ -435,6 +473,8 @@ OPTIONS; /** * @ticket 45089 + * + * @covers WP_Posts_List_Table::print_column_headers */ public function test_sortable_columns_with_current_ordering() { require_once ABSPATH . 'wp-admin/includes/class-wp-comments-list-table.php';