[wp-trac] [WordPress Trac] #40584: Missing `comment_whitelist` reset in `Tests_Comment_CheckComment::test_should_return_true_when_content_does_not_match_moderation_keys`
WordPress Trac
noreply at wordpress.org
Thu Apr 27 15:30:28 UTC 2017
#40584: Missing `comment_whitelist` reset in
`Tests_Comment_CheckComment::test_should_return_true_when_content_does_not_match_moderation_keys`
--------------------------+-----------------------------
Reporter: stephdau | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I came to @boone with a question about this test because I could not wrap
my head around why it would be asserting False when the name indicates it
should assert true.
He investigated a bit, and found that the test is missing a
`update_option( 'comment_whitelist', 0 );`, as done in the previous test.
Creating a ticket to implement his findings.
Original Slack discussion at
https://wordpress.slack.com/archives/C02RQBWTW/p1493306172794672
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40584>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list