wordpress-develop/tests/phpunit/tests/comment
Sergey Biryukov 8fc144ab27 Tests: Use assertSame() in get_comment_pages_count() tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [27055], [48937], [54402], [57244], [57648].

Props costdev.
See #58683, #59655.

git-svn-id: https://develop.svn.wordpress.org/trunk@57650 602fd350-edb4-49c9-b593-d223f7449a82
2024-02-17 16:32:37 +00:00
..
checkComment.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
commentForm.php Tests: Improve the @group annotation accuracy and consistency. 2023-10-19 13:51:04 +00:00
commentsOpen.php Tests: Improve the @group annotation accuracy and consistency. 2023-10-19 13:51:04 +00:00
commentsTemplate.php Tests: Improve the @group annotation accuracy and consistency. 2023-10-19 13:51:04 +00:00
commentTime.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
dateQuery.php Build/Test Tools: Add @covers tags to the comments tests. 2022-08-08 23:12:30 +00:00
getCommentAuthorEmailLink.php Build/Test Tools: Add @covers tags to the comments tests. 2022-08-08 23:12:30 +00:00
getCommentAuthorUrl.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
getCommentAuthorUrlLink.php Tests: Correct the expected quotes in get_comment_author_url_link() tests. 2023-04-19 14:49:51 +00:00
getCommentClass.php Build/Test Tools: Add @covers tags to the comments tests. 2022-08-08 23:12:30 +00:00
getCommentCount.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
getCommentExcerpt.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
getCommentLink.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
getCommentReplyLink.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
getCommentsPagesCount.php Tests: Use assertSame() in get_comment_pages_count() tests. 2024-02-17 16:32:37 +00:00
getLastCommentModified.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
getPageOfComment.php Tests: Use the function get_num_queries across all unit tests. 2023-05-11 10:05:51 +00:00
isAvatarCommentType.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
metaCache.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00
pingsOpen.php Tests: Improve the @group annotation accuracy and consistency. 2023-10-19 13:51:04 +00:00
query.php Comments: Improve WP_Comment_Query count query performance by setting 'order by' to 'none'. 2023-09-29 17:11:21 +00:00
slashes.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
template.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
walker.php Code Modernization: Remove dynamic properties in Tests_Comment_Walker. 2022-08-24 14:03:12 +00:00
wpAllowComment.php Build/Test Tools: Add @covers tags to the comments tests. 2022-08-08 23:12:30 +00:00
wpBatchUpdateCommentType.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
wpCheckCommentDisallowedList.php Comments: Make moderated or disallowed key check case-insensitive for non-Latin words. 2022-11-28 19:42:56 +00:00
wpComment.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
wpCommentsPersonalDataEraser.php Comments: Use correct orderby parameter name in personal data exporter and eraser. 2023-02-13 22:03:30 +00:00
wpCommentsPersonalDataExporter.php Comments: Use correct orderby parameter name in personal data exporter and eraser. 2023-02-13 22:03:30 +00:00
wpCountComments.php Tests: Rename classes in phpunit/tests/comment/ per the naming conventions. 2022-10-27 15:53:08 +00:00
wpHandleCommentSubmission.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
wpListComments.php Themes: Deprecate usage of TEMPLATEPATH and STYLESHEETPATH constants. 2023-09-20 17:25:26 +00:00
wpUpdateCommentCountNow.php Tests: Improve the @group annotation accuracy and consistency. 2023-10-19 13:51:04 +00:00