Ticket #40584: 40584.diff
File 40584.diff, 890 bytes (added by , 4 years ago) |
---|
-
tests/phpunit/tests/comment/checkComment.php
83 83 } 84 84 85 85 public function test_should_return_true_when_content_does_not_match_moderation_keys() { 86 update_option( 'comment_whitelist', 0 ); 87 86 88 $author = 'WendytheBuilder'; 87 89 $author_email = 'wendy@example.com'; 88 90 $author_url = 'http://example.com'; … … 93 95 94 96 update_option( 'moderation_keys',"foo\nbar" ); 95 97 $results = check_comment( $author, $author_email, $author_url, $comment, $author_ip, $user_agent, $comment_type ); 96 $this->assert False( $results );98 $this->assertTrue( $results ); 97 99 } 98 100 99 101 public function test_should_return_false_when_link_count_exceeds_comment_max_length_setting() {