Changeset 54888 for trunk/tests/phpunit/tests/comment/checkComment.php
- Timestamp:
- 11/28/2022 07:42:56 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/checkComment.php
r54090 r54888 71 71 } 72 72 73 public function test_should_return_false_when_content_matches_moderation_key () {73 public function test_should_return_false_when_content_matches_moderation_keys() { 74 74 update_option( 'comment_previously_approved', 0 ); 75 75 … … 83 83 84 84 update_option( 'moderation_keys', "foo\nbar\nscoop" ); 85 $results = check_comment( $author, $author_email, $author_url, $comment, $author_ip, $user_agent, $comment_type ); 86 $this->assertFalse( $results ); 87 } 88 89 /** 90 * @ticket 57207 91 */ 92 public function test_should_return_false_when_content_with_non_latin_words_matches_moderation_keys() { 93 update_option( 'comment_previously_approved', 0 ); 94 95 $author = 'Setup'; 96 $author_email = 'setup@example.com'; 97 $author_url = 'http://example.com'; 98 $comment = 'Установка'; 99 $author_ip = '192.168.0.1'; 100 $user_agent = ''; 101 $comment_type = ''; 102 103 update_option( 'moderation_keys', "установка\nfoo" ); 85 104 $results = check_comment( $author, $author_email, $author_url, $comment, $author_ip, $user_agent, $comment_type ); 86 105 $this->assertFalse( $results );
Note: See TracChangeset
for help on using the changeset viewer.