Changeset 40557 for trunk/tests/phpunit/tests/comment/checkComment.php
- Timestamp:
- 04/27/2017 04:22:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/checkComment.php
r38738 r40557 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'; … … 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
Note: See TracChangeset
for help on using the changeset viewer.