From 9adb06afbb99ff5cff8b4398e4200460f7919852 Mon Sep 17 00:00:00 2001
From: GITUSER <hudson@inboundnow.com>
Date: Thu, 24 Sep 2020 18:25:50 -0500
Subject: [PATCH] tests/admin

---
 tests/phpunit/tests/admin/includesMisc.php     |  3 ++
 tests/phpunit/tests/admin/includesPlugin.php   | 22 ++++++++++
 tests/phpunit/tests/admin/includesPost.php     | 59 ++++++++++++++++++++++++++
 tests/phpunit/tests/admin/includesSchema.php   |  3 ++
 tests/phpunit/tests/admin/includesScreen.php   | 53 +++++++++++++++++++++++
 tests/phpunit/tests/admin/includesTemplate.php | 17 ++++++++
 tests/phpunit/tests/admin/includesTheme.php    |  8 ++++
 7 files changed, 165 insertions(+)

diff --git a/tests/phpunit/tests/admin/includesMisc.php b/tests/phpunit/tests/admin/includesMisc.php
index 93951af..a6bf413 100644
--- a/tests/phpunit/tests/admin/includesMisc.php
+++ b/tests/phpunit/tests/admin/includesMisc.php
@@ -4,6 +4,9 @@
  * @group admin
  */
 class Tests_Admin_includesMisc extends WP_UnitTestCase {
+	/**
+	 * @covers ::shorten_url
+	 */
 	function test_shorten_url() {
 		$tests = array(
 			'wordpress\.org/about/philosophy'
diff --git a/tests/phpunit/tests/admin/includesPlugin.php b/tests/phpunit/tests/admin/includesPlugin.php
index 310173b..0d9e532 100644
--- a/tests/phpunit/tests/admin/includesPlugin.php
+++ b/tests/phpunit/tests/admin/includesPlugin.php
@@ -4,6 +4,10 @@
  * @group admin
  */
 class Tests_Admin_includesPlugin extends WP_UnitTestCase {
+
+	/**
+	 * @covers ::get_plugin_data
+	 */
 	function test_get_plugin_data() {
 		$data = get_plugin_data( DIR_TESTDATA . '/plugins/hello.php' );
 
@@ -27,6 +31,9 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
 		}
 	}
 
+	/**
+	 * @covers ::menu_page_url
+	 */
 	function test_menu_page_url() {
 		$current_user = get_current_user_id();
 		wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
@@ -259,6 +266,8 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
 	 * Test that when a submenu has the same slug as a parent item, that it's just appended and ignores the priority.
 	 *
 	 * @ticket 48599
+	 * @covers ::add_submenu_page
+	 *
 	 */
 	function test_priority_when_parent_slug_child_slug_are_the_same() {
 		global $submenu, $menu;
@@ -291,6 +300,7 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
 	 * Passing a string as priority will fail.
 	 *
 	 * @ticket 48599
+	 * @covers ::add_submenu_page
 	 */
 	function test_passing_string_as_priority_fires_doing_it_wrong() {
 		$this->setExpectedIncorrectUsage( 'add_submenu_page' );
@@ -316,6 +326,9 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
 		$this->assertSame( 'submenu_page_1', $submenu['main_slug'][1][2] );
 	}
 
+	/**
+	 * @covers ::is_plugin_active
+	 */
 	function test_is_plugin_active_true() {
 		activate_plugin( 'hello.php' );
 		$test = is_plugin_active( 'hello.php' );
@@ -324,18 +337,27 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
 		deactivate_plugins( 'hello.php' );
 	}
 
+	/**
+	 * @covers ::is_plugin_active
+	 */
 	function test_is_plugin_active_false() {
 		deactivate_plugins( 'hello.php' );
 		$test = is_plugin_active( 'hello.php' );
 		$this->assertFalse( $test );
 	}
 
+	/**
+	 * @covers ::is_plugin_inactive
+	 */
 	function test_is_plugin_inactive_true() {
 		deactivate_plugins( 'hello.php' );
 		$test = is_plugin_inactive( 'hello.php' );
 		$this->assertTrue( $test );
 	}
 
+	/**
+	 * @covers ::is_plugin_inactive
+	 */
 	function test_is_plugin_inactive_false() {
 		activate_plugin( 'hello.php' );
 		$test = is_plugin_inactive( 'hello.php' );
diff --git a/tests/phpunit/tests/admin/includesPost.php b/tests/phpunit/tests/admin/includesPost.php
index fcb74ce..ec1dddd 100644
--- a/tests/phpunit/tests/admin/includesPost.php
+++ b/tests/phpunit/tests/admin/includesPost.php
@@ -26,6 +26,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		self::$post_id = $factory->post->create();
 	}
 
+	/**
+	 * @covers ::_wp_translate_postdata
+	 */
 	function test__wp_translate_postdata_cap_checks_contributor() {
 		wp_set_current_user( self::$contributor_id );
 
@@ -76,6 +79,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( 'Sorry, you are not allowed to edit posts as this user.', $_results->get_error_message() );
 	}
 
+	/**
+	 * @covers ::_wp_translate_postdata
+	 */
 	function test__wp_translate_postdata_cap_checks_editor() {
 		wp_set_current_user( self::$editor_id );
 
@@ -130,6 +136,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	 * edit_post() should convert an existing auto-draft to a draft.
 	 *
 	 * @ticket 25272
+	 * @covers ::edit_post
 	 */
 	function test_edit_post_auto_draft() {
 		wp_set_current_user( self::$editor_id );
@@ -147,6 +154,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 30615
+	 * @covers ::edit_post
 	 */
 	public function test_edit_post_should_parse_tax_input_by_name_rather_than_slug_for_nonhierarchical_taxonomies() {
 		wp_set_current_user( self::$editor_id );
@@ -187,6 +195,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 30615
+	 * @covers ::edit_post
 	 */
 	public function test_edit_post_should_not_create_terms_for_an_empty_tag_input_field() {
 		wp_set_current_user( self::$editor_id );
@@ -216,6 +225,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 27792
+	 * @covers ::bulk_edit_posts
 	 */
 	public function test_bulk_edit_posts_stomping() {
 		wp_set_current_user( self::$admin_id );
@@ -263,6 +273,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	 * when it's unchanged.
 	 *
 	 * @ticket 44914
+	 * @covers ::bulk_edit_posts
 	 */
 	public function test_bulk_edit_posts_should_preserve_post_format_when_unchanged() {
 		wp_set_current_user( self::$admin_id );
@@ -295,6 +306,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 41396
+	 * @covers ::bulk_edit_posts
 	 */
 	public function test_bulk_edit_posts_should_set_post_format_before_wp_update_post_runs() {
 		wp_set_current_user( self::$admin_id );
@@ -320,6 +332,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38293
+	 * @covers ::edit_post
 	 */
 	public function test_user_cant_delete_protected_meta() {
 		$protected_meta_key = '_test_meta_data_that_is_protected';
@@ -354,6 +367,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 30910
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_return_pretty_permalink_for_posts_with_post_status_future() {
 		$permalink_structure = '%postname%';
@@ -377,6 +391,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	/**
 	 * @ticket 30910
 	 * @ticket 18306
+	 * @covers ::get_sample_permalink_html
 	 */
 	public function test_get_sample_permalink_html_should_use_default_permalink_for_view_post_link_when_pretty_permalinks_are_disabled() {
 		wp_set_current_user( self::$admin_id );
@@ -398,6 +413,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	/**
 	 * @ticket 30910
 	 * @ticket 18306
+	 * @covers ::get_sample_permalink_html
 	 */
 	public function test_get_sample_permalink_html_should_use_pretty_permalink_for_view_post_link_when_pretty_permalinks_are_enabled() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -421,6 +437,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 35980
+	 * @covers ::get_sample_permalink_html
 	 */
 	public function test_get_sample_permalink_html_should_use_pretty_permalink_for_view_attachment_link_when_pretty_permalinks_are_enabled() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -447,6 +464,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	/**
 	 * @ticket 32954
 	 * @ticket 18306
+	 * @covers ::get_sample_permalink_html
 	 */
 	public function test_get_sample_permalink_html_should_use_correct_permalink_for_view_post_link_when_changing_slug() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -505,6 +523,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	/**
 	 * @ticket 30910
 	 * @ticket 18306
+	 * @covers ::get_sample_permalink_html
 	 */
 	public function test_get_sample_permalink_html_should_use_preview_links_for_draft_and_pending_posts_with_no_post_name() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -527,6 +546,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_year_archives() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -543,6 +563,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_allow_yearlike_slugs_if_permastruct_does_not_cause_an_archive_conflict() {
 		$this->set_permalink_structure( '/%year%/%postname%/' );
@@ -559,6 +580,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_month_archives() {
 		$this->set_permalink_structure( '/%year%/%postname%/' );
@@ -575,6 +597,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_ignore_potential_month_conflicts_for_invalid_monthnum() {
 		$this->set_permalink_structure( '/%year%/%postname%/' );
@@ -591,6 +614,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_avoid_slugs_that_would_create_clashes_with_day_archives() {
 		$this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' );
@@ -607,6 +631,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_iterate_slug_suffix_when_a_date_conflict_is_found() {
 		$this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' );
@@ -629,6 +654,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_ignore_potential_day_conflicts_for_invalid_day() {
 		$this->set_permalink_structure( '/%year%/%monthnum%/%postname%/' );
@@ -645,6 +671,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 5305
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_allow_daylike_slugs_if_permastruct_does_not_cause_an_archive_conflict() {
 		$this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
@@ -661,6 +688,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 35368
+	 * @covers ::get_sample_permalink
 	 */
 	public function test_get_sample_permalink_should_respect_hierarchy_of_draft_pages() {
 		$this->set_permalink_structure( '/%postname%/' );
@@ -686,6 +714,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( 'child-page', $actual[1] );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_match_title() {
 		$p = self::factory()->post->create(
 			array(
@@ -696,6 +727,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( $p, post_exists( 'Foo Bar' ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_not_match_nonexistent_title() {
 		$p = self::factory()->post->create(
 			array(
@@ -706,6 +740,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( 0, post_exists( 'Foo Bar Baz' ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_match_nonempty_content() {
 		$title   = 'Foo Bar';
 		$content = 'Foo Bar Baz';
@@ -721,6 +758,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 35246
+	 * @covers ::post_exists
 	 */
 	public function test_post_exists_should_match_content_with_no_title() {
 		$title   = '';
@@ -735,6 +773,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( $p, post_exists( $title, $content ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_not_match_when_nonempty_content_doesnt_match() {
 		$title   = 'Foo Bar';
 		$content = 'Foo Bar Baz';
@@ -748,6 +789,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( 0, post_exists( $title, $content ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_match_nonempty_date() {
 		$title = 'Foo Bar';
 		$date  = '2014-05-08 12:00:00';
@@ -761,6 +805,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( $p, post_exists( $title, '', $date ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_not_match_when_nonempty_date_doesnt_match() {
 		$title = 'Foo Bar';
 		$date  = '2014-05-08 12:00:00';
@@ -774,6 +821,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( 0, post_exists( $title, '', $date ) );
 	}
 
+	/**
+	 * @covers ::post_exists
+	 */
 	public function test_post_exists_should_match_nonempty_title_content_and_date() {
 		$title   = 'Foo Bar';
 		$content = 'Foo Bar Baz';
@@ -789,6 +839,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		$this->assertSame( $p, post_exists( $title, $content, $date ) );
 	}
 
+	/**
+	 * @covers ::use_block_editor_for_post
+	 */
 	function test_use_block_editor_for_post() {
 		$this->assertFalse( use_block_editor_for_post( -1 ) );
 		$bogus_post_id = $this->factory()->post->create(
@@ -822,6 +875,9 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 		remove_filter( 'use_block_editor_for_post', '__return_true' );
 	}
 
+	/**
+	 * @covers ::get_block_editor_server_block_settings
+	 */
 	function test_get_block_editor_server_block_settings() {
 		$name     = 'core/test';
 		$settings = array(
@@ -853,6 +909,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 43559
+	 * @covers ::add_meta
 	 */
 	public function test_post_add_meta_empty_is_allowed() {
 		$p = self::factory()->post->create();
@@ -872,6 +929,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	 * Test the post type support in post_exists().
 	 *
 	 * @ticket 37406
+	 * @covers ::post_exists
 	 */
 	public function test_post_exists_should_support_post_type() {
 		$title     = 'Foo Bar';
@@ -889,6 +947,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
 	 * Test that post_exists() doesn't find an existing page as a post.
 	 *
 	 * @ticket 37406
+	 * @covers ::post_exists
 	 */
 	public function test_post_exists_should_not_match_a_page_for_post() {
 		$title     = 'Foo Bar';
diff --git a/tests/phpunit/tests/admin/includesSchema.php b/tests/phpunit/tests/admin/includesSchema.php
index d770128..4c67982 100644
--- a/tests/phpunit/tests/admin/includesSchema.php
+++ b/tests/phpunit/tests/admin/includesSchema.php
@@ -90,6 +90,7 @@ class Tests_Admin_Includes_Schema extends WP_UnitTestCase {
 	/**
 	 * @ticket 44893
 	 * @dataProvider data_populate_options
+	 * @covers ::populate_options
 	 */
 	function test_populate_options( $options, $expected ) {
 		global $wpdb;
@@ -182,6 +183,7 @@ class Tests_Admin_Includes_Schema extends WP_UnitTestCase {
 	 * @group multisite
 	 * @group ms-required
 	 * @dataProvider data_populate_site_meta
+	 * @covers ::populate_site_meta
 	 */
 	function test_populate_site_meta( $meta, $expected ) {
 		global $wpdb;
@@ -226,6 +228,7 @@ class Tests_Admin_Includes_Schema extends WP_UnitTestCase {
 	 * @ticket 44895
 	 * @group multisite
 	 * @dataProvider data_populate_network_meta
+	 * @covers ::populate_network_meta
 	 */
 	function test_populate_network_meta( $meta, $expected ) {
 		global $wpdb;
diff --git a/tests/phpunit/tests/admin/includesScreen.php b/tests/phpunit/tests/admin/includesScreen.php
index c482ae3..c66e559 100644
--- a/tests/phpunit/tests/admin/includesScreen.php
+++ b/tests/phpunit/tests/admin/includesScreen.php
@@ -167,6 +167,9 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		parent::tearDown();
 	}
 
+	/**
+	 * @covers ::set_current_screen
+	 */
 	function test_set_current_screen_with_hook_suffix() {
 		global $current_screen;
 
@@ -235,6 +238,9 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		}
 	}
 
+	/**
+	 * @covers ::convert_to_screen
+	 */
 	function test_post_type_as_hookname() {
 		$screen = convert_to_screen( 'page' );
 		$this->assertSame( $screen->post_type, 'page' );
@@ -243,6 +249,10 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertTrue( $screen->is_block_editor );
 	}
 
+	/**
+	 * @covers ::register_post_type
+	 * @covers ::convert_to_screen
+	 */
 	function test_post_type_with_special_suffix_as_hookname() {
 		register_post_type( 'value-add' );
 		$screen = convert_to_screen( 'value-add' ); // The '-add' part is key.
@@ -258,6 +268,10 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertFalse( $screen->is_block_editor ); // Post types do not support `show_in_rest` by default.
 	}
 
+	/**
+	 * @covers ::register_taxonomy
+	 * @covers ::convert_to_screen
+	 */
 	function test_taxonomy_with_special_suffix_as_hookname() {
 		register_taxonomy( 'old-or-new', 'post' );
 		$screen = convert_to_screen( 'edit-old-or-new' ); // The '-new' part is key.
@@ -267,6 +281,10 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertFalse( $screen->is_block_editor );
 	}
 
+	/**
+	 * @covers ::register_post_type
+	 * @covers ::convert_to_screen
+	 */
 	function test_post_type_with_edit_prefix() {
 		register_post_type( 'edit-some-thing' );
 		$screen = convert_to_screen( 'edit-some-thing' );
@@ -282,6 +300,10 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertFalse( $screen->is_block_editor ); // Post types do not support `show_in_rest` by default.
 	}
 
+	/**
+	 * @covers ::register_post_type
+	 * @covers ::convert_to_screen
+	 */
 	function test_post_type_edit_collisions() {
 		register_post_type( 'comments' );
 		register_post_type( 'tags' );
@@ -302,6 +324,15 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertSame( $screen->base, 'post' );
 	}
 
+	/**
+	 * @covers ::get_current_screen
+	 * @covers get_current_screen::add_help_tab
+	 * @covers get_current_screen::add_help_tabs
+	 * @covers get_current_screen::get_help_tab
+	 * @covers get_current_screen::get_help_tabs
+	 * @covers get_current_screen::remove_help_tab
+	 * @covers get_current_screen::remove_help_tabs
+	 */
 	function test_help_tabs() {
 		$tab      = __FUNCTION__;
 		$tab_args = array(
@@ -336,6 +367,13 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 19828
+	 * @covers ::get_current_screen
+	 * @covers get_current_screen::add_help_tab
+	 * @covers get_current_screen::add_help_tabs
+	 * @covers get_current_screen::get_help_tab
+	 * @covers get_current_screen::get_help_tabs
+	 * @covers get_current_screen::remove_help_tab
+	 * @covers get_current_screen::remove_help_tabs
 	 */
 	function test_help_tabs_priority() {
 		$tab_1      = 'tab1';
@@ -431,6 +469,12 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 25799
+	 * @covers ::get_current_screen
+	 * @covers get_current_screen::add_option
+	 * @covers get_current_screen::get_option
+	 * @covers get_current_screen::get_options
+	 * @covers get_current_screen::remove_option
+	 * @covers get_current_screen::remove_options
 	 */
 	function test_options() {
 		$option      = __FUNCTION__;
@@ -455,6 +499,14 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 		$this->assertSame( $screen->get_options(), array() );
 	}
 
+	/**
+	 * @covers ::get_current_screen
+	 * @covers ::set_current_screen
+	 * @covers get_current_screen::in_admin
+	 * @covers get_current_screen::get_options
+	 * @covers get_current_screen::remove_option
+	 * @covers get_current_screen::remove_options
+	 */
 	function test_in_admin() {
 		$screen = get_current_screen();
 
@@ -606,6 +658,7 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
 	 *     $function string Function name to hook to the filter.
 	 * }
 	 * @param bool   $expected The expected `is_block_editor` value.
+	 * @covers get_current_screen::is_block_editor
 	 */
 	public function test_is_block_editor( $hook, $filter, $expected ) {
 		if ( ! empty( $filter['name'] ) && ! empty( $filter['function'] ) ) {
diff --git a/tests/phpunit/tests/admin/includesTemplate.php b/tests/phpunit/tests/admin/includesTemplate.php
index 80a74eb..fb580a7 100644
--- a/tests/phpunit/tests/admin/includesTemplate.php
+++ b/tests/phpunit/tests/admin/includesTemplate.php
@@ -7,6 +7,7 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 	/**
 	 * @ticket 51147
 	 * @dataProvider data_wp_terms_checklist_with_selected_cats
+	 * @covers ::wp_terms_checklist
 	 */
 	public function test_wp_terms_checklist_with_selected_cats( $term_id ) {
 		$output = wp_terms_checklist(
@@ -23,6 +24,7 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 	/**
 	 * @ticket 51147
 	 * @dataProvider data_wp_terms_checklist_with_selected_cats
+	 * @covers ::wp_terms_checklist
 	 */
 	public function test_wp_terms_checklist_with_popular_cats( $term_id ) {
 		$output = wp_terms_checklist(
@@ -43,6 +45,9 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 		);
 	}
 
+	/**
+	 * @covers ::add_meta_box
+	 */
 	public function test_add_meta_box() {
 		global $wp_meta_boxes;
 
@@ -51,6 +56,10 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 		$this->assertArrayHasKey( 'testbox1', $wp_meta_boxes['post']['advanced']['default'] );
 	}
 
+	/**
+	 * @covers ::add_meta_box
+	 * @covers ::remove_meta_box
+	 */
 	public function test_remove_meta_box() {
 		global $wp_meta_boxes;
 
@@ -69,6 +78,7 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15000
+	 * @covers ::add_meta_box
 	 */
 	public function test_add_meta_box_on_multiple_screens() {
 		global $wp_meta_boxes;
@@ -83,6 +93,8 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15000
+	 * @covers ::add_meta_box
+	 * @covers ::remove_meta_box
 	 */
 	public function test_remove_meta_box_from_multiple_screens() {
 		global $wp_meta_boxes;
@@ -107,6 +119,8 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 50019
+	 * @covers ::add_meta_box
+	 * @covers ::remove_meta_box
 	 */
 	public function test_add_meta_box_with_previously_removed_box_and_sorted_priority() {
 		global $wp_meta_boxes;
@@ -130,6 +144,8 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 	 * @ticket 42498
 	 * @covers ::get_settings_errors
 	 * @global array $wp_settings_errors
+	 * @covers ::add_settings_error
+	 * @covers ::get_settings_errors
 	 */
 	public function test_get_settings_errors_sources() {
 		global $wp_settings_errors;
@@ -171,6 +187,7 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase {
 	 * @covers ::settings_errors
 	 * @global array $wp_settings_errors
 	 * @dataProvider settings_errors_css_classes_provider
+	 * @covers ::settings_errors
 	 */
 	public function test_settings_errors_css_classes( $type, $expected ) {
 		global $wp_settings_errors;
diff --git a/tests/phpunit/tests/admin/includesTheme.php b/tests/phpunit/tests/admin/includesTheme.php
index ca842df..f3dff41 100644
--- a/tests/phpunit/tests/admin/includesTheme.php
+++ b/tests/phpunit/tests/admin/includesTheme.php
@@ -41,6 +41,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 	 * @ticket 11216
 	 * @expectedDeprecated get_theme
 	 * @expectedDeprecated get_themes
+	 * @covers ::get_page_templates
 	 */
 	function test_page_templates() {
 		$theme = get_theme( 'Page Template Theme' );
@@ -74,6 +75,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 18375
+	 * @covers ::get_page_templates
 	 */
 	function test_page_templates_different_post_types() {
 		$theme = wp_get_theme( 'page-templates' );
@@ -100,6 +102,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38766
+	 * @covers ::get_page_templates
 	 */
 	function test_page_templates_for_post_types_with_trailing_periods() {
 		$theme = wp_get_theme( 'page-templates' );
@@ -132,6 +135,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38696
+	 * @covers ::get_page_templates
 	 */
 	function test_page_templates_child_theme() {
 		$theme = wp_get_theme( 'page-templates-child' );
@@ -171,6 +175,8 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 41717
+	 * @covers ::wp_get_theme
+	 * @covers wp_get_theme::get_post_templates
 	 */
 	public function test_get_post_templates_child_theme() {
 		$theme = wp_get_theme( 'page-templates-child' );
@@ -215,6 +221,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 	 *
 	 * @group external-http
 	 * @ticket 28121
+	 * @covers ::get_theme_feature_list
 	 */
 	function test_get_theme_featured_list_api() {
 		wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );
@@ -229,6 +236,7 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
 	 *
 	 * @group external-http
 	 * @ticket 28121
+	 * @covers ::get_theme_feature_list
 	 */
 	function test_get_theme_featured_list_hardcoded() {
 		$featured_list_hardcoded = get_theme_feature_list( false );
-- 
2.6.2.windows.1

From 6a94978c6d0aa3905edd34f42f5efe9c0cf62920 Mon Sep 17 00:00:00 2001
From: GITUSER <hudson@inboundnow.com>
Date: Wed, 9 Sep 2020 16:35:26 -0500
Subject: [PATCH] Working with Paul

---
 tests/phpunit/tests/admin/includesListTable.php | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php
index 90669a3..4ef140c 100644
--- a/tests/phpunit/tests/admin/includesListTable.php
+++ b/tests/phpunit/tests/admin/includesListTable.php
@@ -75,7 +75,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_list_hierarchical_pages_first_page() {
 		$this->_test_list_hierarchical_page(
@@ -92,7 +92,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_list_hierarchical_pages_second_page() {
 		$this->_test_list_hierarchical_page(
@@ -110,7 +110,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_search_hierarchical_pages_first_page() {
 		$this->_test_list_hierarchical_page(
@@ -128,7 +128,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_search_hierarchical_pages_second_page() {
 		$this->_test_list_hierarchical_page(
@@ -146,7 +146,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_grandchildren_hierarchical_pages_first_page() {
 		// Page 6 is the first page with grandchildren.
@@ -166,7 +166,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 */
 	function test_grandchildren_hierarchical_pages_second_page() {
 		// Page 7 is the second page with grandchildren.
@@ -189,7 +189,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 	 *
 	 * @param array $args         Query args for the list of pages.
 	 * @param array $expected_ids Expected IDs of pages returned.
-	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::list_hierarchical_page
 	 * @covers WP_Posts_List_Table::set_hierarchical_display
 	 * @covers WP_Posts_List_Table::display_rows
 	 */
@@ -236,7 +236,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	function test_filter_button_should_not_be_shown_if_there_are_no_posts() {
@@ -252,7 +251,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	function test_months_dropdown_should_not_be_shown_if_there_are_no_posts() {
@@ -268,7 +266,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	function test_category_dropdown_should_not_be_shown_if_there_are_no_posts() {
@@ -284,7 +281,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38341
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	public function test_empty_trash_button_should_not_be_shown_if_there_are_no_posts() {
@@ -301,7 +297,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 	/**
 	 * @ticket 40188
 	 * @covers ::_get_list_table
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	public function test_filter_button_should_not_be_shown_if_there_are_no_comments() {
@@ -317,7 +312,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 	/**
 	 * @ticket 40188
 	 * @covers ::_get_list_table
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	public function test_filter_button_should_be_shown_if_there_are_comments() {
@@ -342,7 +336,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 	/**
 	 * @ticket 40188
 	 * @covers ::_get_list_table
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	public function test_filter_comment_status_dropdown_should_be_shown_if_there_are_comments() {
@@ -383,7 +376,6 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 45089
-	 * @covers class::WP_Posts_List_Table
 	 * @covers WP_Posts_List_Table::get_sortable_columns
 	 * @covers WP_Posts_List_Table::print_column_headers
 	 */
-- 
2.6.2.windows.1

From 9c6c7e3090810070a533774577688cc87b31e874 Mon Sep 17 00:00:00 2001
From: GITUSER <hudson@inboundnow.com>
Date: Tue, 8 Sep 2020 13:07:25 -0500
Subject: [PATCH] adding covers to includesListTable.php, need to get help to
 see if I am doing this correctly.

---
 tests/phpunit/tests/admin/includesListTable.php | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php
index e7268d0..90669a3 100644
--- a/tests/phpunit/tests/admin/includesListTable.php
+++ b/tests/phpunit/tests/admin/includesListTable.php
@@ -300,6 +300,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 40188
+	 * @covers ::_get_list_table
+	 * @covers class::WP_Posts_List_Table
+	 * @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' ) );
@@ -313,6 +316,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 40188
+	 * @covers ::_get_list_table
+	 * @covers class::WP_Posts_List_Table
+	 * @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();
@@ -335,6 +341,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 40188
+	 * @covers ::_get_list_table
+	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::extra_tablenav
 	 */
 	public function test_filter_comment_status_dropdown_should_be_shown_if_there_are_comments() {
 		$post_id    = self::factory()->post->create();
@@ -358,6 +367,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38341
+	 * @covers ::_get_list_table
+	 * @covers class::WP_Posts_List_Table
+	 * @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' ) );
@@ -371,6 +383,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 45089
+	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::get_sortable_columns
+	 * @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';
@@ -405,6 +420,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 45089
+	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::get_sortable_columns
+	 * @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';
-- 
2.6.2.windows.1

From 688fbda8a818ed0cbacc8596ec6bd14dff80528e Mon Sep 17 00:00:00 2001
From: GITUSER <hudson@inboundnow.com>
Date: Tue, 8 Sep 2020 12:58:13 -0500
Subject: [PATCH] saving changes

---
 .gitignore                                            |  1 +
 tests/phpunit/tests/actions/callbacks.php             |  1 +
 tests/phpunit/tests/actions/closures.php              |  1 +
 tests/phpunit/tests/admin/includesComment.php         |  6 ++++++
 tests/phpunit/tests/admin/includesCommunityEvents.php | 12 ++++++++++++
 tests/phpunit/tests/admin/includesFile.php            |  2 ++
 tests/phpunit/tests/admin/includesListTable.php       | 17 +++++++++++++++++
 7 files changed, 40 insertions(+)

diff --git a/.gitignore b/.gitignore
index 01757f7..6eff812 100644
--- a/.gitignore
+++ b/.gitignore
@@ -77,3 +77,4 @@ wp-tests-config.php
 
 # Files for local environment config
 /docker-compose.override.yml
+.idea/
diff --git a/tests/phpunit/tests/actions/callbacks.php b/tests/phpunit/tests/actions/callbacks.php
index fc58c33..2db504d 100644
--- a/tests/phpunit/tests/actions/callbacks.php
+++ b/tests/phpunit/tests/actions/callbacks.php
@@ -7,6 +7,7 @@ class Tests_Actions_Callbacks extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 23265
+	 * @covers ::has_action
 	 */
 	function test_callback_representations() {
 		$tag = __FUNCTION__;
diff --git a/tests/phpunit/tests/actions/closures.php b/tests/phpunit/tests/actions/closures.php
index d1a458e..a255419 100644
--- a/tests/phpunit/tests/actions/closures.php
+++ b/tests/phpunit/tests/actions/closures.php
@@ -9,6 +9,7 @@ class Tests_Actions_Closures extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 10493
+	 * @covers ::has_action
 	 */
 	function test_action_closure() {
 		$tag     = 'test_action_closure';
diff --git a/tests/phpunit/tests/admin/includesComment.php b/tests/phpunit/tests/admin/includesComment.php
index 1dcc6bb..5f687f0 100644
--- a/tests/phpunit/tests/admin/includesComment.php
+++ b/tests/phpunit/tests/admin/includesComment.php
@@ -47,6 +47,8 @@ class Tests_Admin_IncludesComment extends WP_UnitTestCase {
 
 	/**
 	 * Verify that both the comment date and author must match for a comment to exist.
+	 *
+	 * @covers ::comment_exists
 	 */
 	public function test_must_match_date_and_author() {
 		$this->assertNull( comment_exists( 1, '2004-01-02 12:00:00' ) );
@@ -55,6 +57,7 @@ class Tests_Admin_IncludesComment extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 33871
+	 * @covers ::comment_exists
 	 */
 	public function test_default_value_of_timezone_should_be_blog() {
 		$this->assertEquals( self::$post_id, comment_exists( 1, '2014-05-06 12:00:00' ) );
@@ -62,6 +65,7 @@ class Tests_Admin_IncludesComment extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 33871
+	 * @covers ::comment_exists
 	 */
 	public function test_should_respect_timezone_blog() {
 		$this->assertEquals( self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'blog' ) );
@@ -69,6 +73,7 @@ class Tests_Admin_IncludesComment extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 33871
+	 * @covers ::comment_exists
 	 */
 	public function test_should_respect_timezone_gmt() {
 		$this->assertEquals( self::$post_id, comment_exists( 1, '2014-05-06 07:00:00', 'gmt' ) );
@@ -76,6 +81,7 @@ class Tests_Admin_IncludesComment extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 33871
+	 * @covers ::comment_exists
 	 */
 	public function test_invalid_timezone_should_fall_back_on_blog() {
 		$this->assertEquals( self::$post_id, comment_exists( 1, '2014-05-06 12:00:00', 'not_a_valid_value' ) );
diff --git a/tests/phpunit/tests/admin/includesCommunityEvents.php b/tests/phpunit/tests/admin/includesCommunityEvents.php
index 5bae0d8..26c6dad 100644
--- a/tests/phpunit/tests/admin/includesCommunityEvents.php
+++ b/tests/phpunit/tests/admin/includesCommunityEvents.php
@@ -60,6 +60,8 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * Test: get_events() should return an instance of WP_Error if the response code is not 200.
 	 *
 	 * @since 4.8.0
+	 *
+	 * @covers WP_Community_Events::get_events
 	 */
 	public function test_get_events_bad_response_code() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_bad_response_code' ) );
@@ -73,6 +75,8 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * Test: The response body should not be cached if the response code is not 200.
 	 *
 	 * @since 4.8.0
+	 *
+	 * @covers WP_Community_Events::get_cached_events
 	 */
 	public function test_get_cached_events_bad_response_code() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_bad_response_code' ) );
@@ -108,6 +112,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * the required properties.
 	 *
 	 * @since 4.8.0
+	 * @covers WP_Community_Events::get_events
 	 */
 	public function test_get_events_invalid_response() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_invalid_response' ) );
@@ -121,6 +126,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * Test: The response body should not be cached if it does not have the required properties.
 	 *
 	 * @since 4.8.0
+	 * @covers WP_Community_Events::get_cached_events
 	 */
 	public function test_get_cached_events_invalid_response() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_invalid_response' ) );
@@ -156,6 +162,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * an events array with individual events that have formatted time and date.
 	 *
 	 * @since 4.8.0
+	 * @covers WP_Community_Events::get_events
 	 */
 	public function test_get_events_valid_response() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_valid_response' ) );
@@ -175,6 +182,8 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * and date values for each event.
 	 *
 	 * @since 4.8.0
+	 * @covers WP_Community_Events::get_events
+	 * @covers WP_Community_Events::get_cached_events
 	 */
 	public function test_get_cached_events_valid_response() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_valid_response' ) );
@@ -262,6 +271,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * Test: get_events() should return the events with the WordCamp pinned in the prepared list.
 	 *
 	 * @since 4.9.7
+	 * @covers WP_Community_Events::get_events
 	 */
 	public function test_get_events_pin_wordcamp() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_valid_response_unpinned_wordcamp' ) );
@@ -364,6 +374,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * falls into the list.
 	 *
 	 * @since 4.9.7
+	 * @covers WP_Community_Events::get_events
 	 */
 	public function test_get_events_dont_pin_multiple_wordcamps() {
 		add_filter( 'pre_http_request', array( $this, '_http_request_valid_response_multiple_wordcamps' ) );
@@ -482,6 +493,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase {
 	 * @dataProvider data_get_unsafe_client_ip
 	 *
 	 * @ticket 41083
+	 * @covers WP_Community_Events::get_unsafe_client_ip
 	 */
 	public function test_get_unsafe_client_ip( $raw_ip, $expected_result ) {
 		$_SERVER['REMOTE_ADDR']    = 'this should not be used';
diff --git a/tests/phpunit/tests/admin/includesFile.php b/tests/phpunit/tests/admin/includesFile.php
index a3af5da..e1e252f 100644
--- a/tests/phpunit/tests/admin/includesFile.php
+++ b/tests/phpunit/tests/admin/includesFile.php
@@ -8,6 +8,7 @@ class Tests_Admin_includesFile extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 20449
+	 * @covers ::get_home_path
 	 */
 	function test_get_home_path() {
 		$home    = get_option( 'home' );
@@ -34,6 +35,7 @@ class Tests_Admin_includesFile extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 43329
+	 * @covers ::download_url
 	 */
 	public function test_download_url_non_200_response_code() {
 		add_filter( 'pre_http_request', array( $this, '_fake_download_url_non_200_response_code' ), 10, 3 );
diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php
index 6ca5b61..e7268d0 100644
--- a/tests/phpunit/tests/admin/includesListTable.php
+++ b/tests/phpunit/tests/admin/includesListTable.php
@@ -75,6 +75,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_list_hierarchical_pages_first_page() {
 		$this->_test_list_hierarchical_page(
@@ -91,6 +92,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_list_hierarchical_pages_second_page() {
 		$this->_test_list_hierarchical_page(
@@ -108,6 +110,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_search_hierarchical_pages_first_page() {
 		$this->_test_list_hierarchical_page(
@@ -125,6 +128,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_search_hierarchical_pages_second_page() {
 		$this->_test_list_hierarchical_page(
@@ -142,6 +146,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_grandchildren_hierarchical_pages_first_page() {
 		// Page 6 is the first page with grandchildren.
@@ -161,6 +166,7 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 15459
+	 * @covers class::WP_Posts_List_Table
 	 */
 	function test_grandchildren_hierarchical_pages_second_page() {
 		// Page 7 is the second page with grandchildren.
@@ -183,6 +189,9 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 	 *
 	 * @param array $args         Query args for the list of pages.
 	 * @param array $expected_ids Expected IDs of pages returned.
+	 * @covers class::WP_Posts_List_Table
+	 * @covers WP_Posts_List_Table::set_hierarchical_display
+	 * @covers WP_Posts_List_Table::display_rows
 	 */
 	protected function _test_list_hierarchical_page( array $args, array $expected_ids ) {
 		$matches = array();
@@ -227,6 +236,8 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
+	 * @covers class::WP_Posts_List_Table
+	 * @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.
@@ -241,6 +252,8 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
+	 * @covers class::WP_Posts_List_Table
+	 * @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.
@@ -255,6 +268,8 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 37407
+	 * @covers class::WP_Posts_List_Table
+	 * @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.
@@ -269,6 +284,8 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase {
 
 	/**
 	 * @ticket 38341
+	 * @covers class::WP_Posts_List_Table
+	 * @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.
-- 
2.6.2.windows.1

