From 88cdf9f6636d4f9c6c2819bdfb9888dc30053daf Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Wed, 1 Sep 2021 21:58:32 +0000 Subject: [PATCH] Tests: Add missing @covers tags for `Tests_Admin_IncludesComment`. Follow-up to [34456], [34460]. Props pbearne, jrf, hellofromTonya. See #39265. git-svn-id: https://develop.svn.wordpress.org/trunk@51724 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/admin/includesComment.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/phpunit/tests/admin/includesComment.php b/tests/phpunit/tests/admin/includesComment.php index 79f96afe24..1e0aba2108 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,8 @@ 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 +66,8 @@ 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 +75,8 @@ 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 +84,8 @@ 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' ) );