Changeset 42343 for trunk/tests/phpunit/tests/comment/wpBlacklistCheck.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/wpBlacklistCheck.php
r38048 r42343 14 14 $user_agent = ''; 15 15 16 update_option( 'blacklist_keys', "well\nfoo" );16 update_option( 'blacklist_keys', "well\nfoo" ); 17 17 18 18 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent ); … … 32 32 $user_agent = ''; 33 33 34 update_option( 'blacklist_keys', "halfway\nfoo" );34 update_option( 'blacklist_keys', "halfway\nfoo" ); 35 35 36 36 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent ); … … 47 47 $user_agent = ''; 48 48 49 update_option( 'blacklist_keys', "sideshow\nfoo" );49 update_option( 'blacklist_keys', "sideshow\nfoo" ); 50 50 51 51 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent ); … … 62 62 $user_agent = ''; 63 63 64 update_option( 'blacklist_keys', "example\nfoo" );64 update_option( 'blacklist_keys', "example\nfoo" ); 65 65 66 66 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent ); … … 80 80 $user_agent = ''; 81 81 82 update_option( 'blacklist_keys', "/spam/");82 update_option( 'blacklist_keys', '/spam/' ); 83 83 84 84 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent ); … … 95 95 $user_agent = ''; 96 96 97 update_option( 'blacklist_keys', "sideshow\nfoobar" );97 update_option( 'blacklist_keys', "sideshow\nfoobar" ); 98 98 99 99 $result = wp_blacklist_check( $author, $author_email, $author_url, $comment, $author_ip, $user_agent );
Note: See TracChangeset
for help on using the changeset viewer.