Changeset 7271
- Timestamp:
- 06/29/2024 04:47:52 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/tests/phpunit/testcases/common/functions.php
r6869 r7271 961 961 $content = 'Beware, they maybe bees hibernating.'; 962 962 963 update_option( ' blacklist_keys',"hibernating\nfoo" );963 update_option( '_keys',"hibernating\nfoo" ); 964 964 965 965 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 967 967 $this->assertFalse( $result ); 968 968 969 update_option( ' blacklist_keys',"foo\nbar" );969 update_option( '_keys',"foo\nbar" ); 970 970 971 971 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 993 993 $content = bbp_get_topic_content( $t ); 994 994 995 update_option( ' blacklist_keys',"http://example.net/banned\nfoo" );995 update_option( '_keys',"http://example.net/banned\nfoo" ); 996 996 997 997 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1019 1019 $content = bbp_get_topic_content( $t ); 1020 1020 1021 update_option( ' blacklist_keys',"banned@example.net\nfoo" );1021 update_option( '_keys',"banned@example.net\nfoo" ); 1022 1022 1023 1023 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1043 1043 $content = bbp_get_topic_content( $t ); 1044 1044 1045 update_option( ' blacklist_keys',"127.0.0.1\nfoo" );1045 update_option( '_keys',"127.0.0.1\nfoo" ); 1046 1046 1047 1047 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1071 1071 $content = bbp_get_topic_content( $t ); 1072 1072 1073 update_option( ' blacklist_keys',"hibernating\nfoo" );1073 update_option( '_keys',"hibernating\nfoo" ); 1074 1074 1075 1075 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1102 1102 $content = bbp_get_topic_content( $t ); 1103 1103 1104 update_option( ' blacklist_keys',"hibernating\nfoo" );1104 update_option( '_keys',"hibernating\nfoo" ); 1105 1105 1106 1106 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1121 1121 $content = 'Beware, there maybe bees <a href="http://example.com/hibernating/>buzzing</a>, buzzing.'; 1122 1122 1123 update_option( ' blacklist_keys',"hibernating\nfoo" );1123 update_option( '_keys',"hibernating\nfoo" ); 1124 1124 1125 1125 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1145 1145 $content = bbp_get_topic_content( $t ); 1146 1146 1147 update_option( ' blacklist_keys',"hibernating\nfoo" );1147 update_option( '_keys',"hibernating\nfoo" ); 1148 1148 1149 1149 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true );
Note: See TracChangeset
for help on using the changeset viewer.