wordpress-develop/tests/phpunit/tests/comment
Boone Gorges 7c4248b5e0 Fix broken check_comment() test.
The test `Tests_Comment_CheckComment::test_should_return_true_when_content_does_not_match_moderation_keys()`
did not, in fact, test for a `true` value, but for a false one.
Switching to `assertTrue()` caused a failure, because the test comment
triggered the 'comment_moderation' test. As in other tests in the file,
the solution is to force 'comment_moderation' to 0 for the purposes of
the test.

Introduced in [32519].

Props stephdau.
Fixes #40584.

git-svn-id: https://develop.svn.wordpress.org/trunk@40557 602fd350-edb4-49c9-b593-d223f7449a82
2017-04-27 16:22:36 +00:00
..
checkComment.php Fix broken check_comment() test. 2017-04-27 16:22:36 +00:00
commentForm.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
commentsTemplate.php Ignore hierarchy in pagination calculation when comment threading is disabled. 2016-01-13 03:12:34 +00:00
dateQuery.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getCommentAuthorEmailLink.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-09 01:29:04 +00:00
getCommentAuthorUrlLink.php Unit Tests: 2016-08-27 08:35:16 +00:00
getCommentClass.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getCommentCount.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getCommentExcerpt.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getCommentLink.php Unit Tests: 2016-08-27 08:35:16 +00:00
getCommentReplyLink.php Set default value of 'max_depth' in get_comment_reply_link(). 2016-09-28 04:19:46 +00:00
getCommentsPagesCount.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getPageOfComment.php Ignore the 'comment_order' setting when determining comment pagination. 2017-01-02 19:58:09 +00:00
lastCommentModified.php Feeds: Always return a valid timestamp for the Last-Modified header of comment or post feeds. 2016-10-25 20:47:06 +00:00
metaCache.php Unit Tests: Change some @group annotations to @ticket. 2016-07-04 20:24:52 +00:00
query.php Comments: Query used to fill comment descendants should reset 'offset' and 'number' params. 2016-11-17 03:02:40 +00:00
slashes.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
template.php Unit Tests: Add description for data_get_comments_number_text_declension(). 2016-07-07 10:44:57 +00:00
walker.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpAllowComment.php REST API: Fix comment option leak causing another test failure. 2016-10-20 05:24:39 +00:00
wpBlacklistCheck.php Comments: Include comment_content with html and without in blacklist_keys comparison. 2016-07-13 14:04:10 +00:00
wpComment.php Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:52:51 +00:00
wpCountComments.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpListComments.php Comments: In wp_list_comments(), queries with custom pagination params should obey default comment_status logic. 2016-06-08 04:00:18 +00:00
wpUpdateCommentCountNow.php Correct usage of Covers for Tests_Update_Comment_Count_Now 2016-05-17 20:19:50 +00:00