Changeset 12246
- Timestamp:
- 10/05/2018 05:24:17 PM (6 years ago)
- Location:
- trunk/tests/phpunit/testcases
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/functions.php
r12245 r12246 805 805 * @group bp_activity_format_activity_action_custom_post_type_post_ms 806 806 * @group activity_tracking 807 * @expectedDeprecated wpmu_new_blog808 807 */ 809 808 public function test_bp_activity_format_activity_action_custom_post_type_post_ms() { 810 809 if ( ! is_multisite() ) { 811 810 $this->markTestSkipped(); 811 } 812 813 if ( function_exists( 'wp_initialize_site' ) ) { 814 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 812 815 } 813 816 … … 918 921 * @group bp_activity_format_activity_action_custom_post_type_post_ms 919 922 * @group activity_tracking 920 * @expectedDeprecated wpmu_new_blog921 923 */ 922 924 public function test_bp_activity_format_activity_action_custom_string_post_type_post_ms() { 923 925 if ( ! is_multisite() ) { 924 926 $this->markTestSkipped(); 927 } 928 929 if ( function_exists( 'wp_initialize_site' ) ) { 930 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 925 931 } 926 932 … … 1056 1062 public function test_bp_activity_format_activity_action_custom_post_type_comment() { 1057 1063 if ( is_multisite() ) { 1058 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 1064 if ( function_exists( 'wp_initialize_site' ) ) { 1065 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 1066 } 1067 1059 1068 $b = self::factory()->blog->create(); 1060 1069 switch_to_blog( $b ); -
trunk/tests/phpunit/testcases/blogs/activity.php
r12244 r12246 24 24 * @group activity_action 25 25 * @group bp_blogs_format_activity_action_new_blog 26 * @expectedDeprecated wpmu_new_blog27 26 */ 28 27 public function test_bp_blogs_format_activity_action_new_blog() { 29 28 if ( ! is_multisite() ) { 30 29 $this->markTestSkipped(); 30 } 31 32 if ( function_exists( 'wp_initialize_site' ) ) { 33 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 31 34 } 32 35 … … 118 121 * @group activity_action 119 122 * @group bp_blogs_format_activity_action_new_blog_post 120 * @expectedDeprecated wpmu_new_blog121 123 */ 122 124 public function test_bp_blogs_format_activity_action_new_blog_post_ms_nonrootblog() { 123 125 if ( ! is_multisite() ) { 124 126 $this->markTestSkipped(); 127 } 128 129 if ( function_exists( 'wp_initialize_site' ) ) { 130 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 125 131 } 126 132 … … 160 166 * @group bp_blogs_format_activity_action_new_blog_comment 161 167 * @group post_type_comment_activities 162 * @expectedDeprecated wpmu_new_blog163 168 */ 164 169 public function test_bp_blogs_format_activity_action_new_blog_comment_ms_nonrootblog() { 165 170 if ( ! is_multisite() ) { 166 171 $this->markTestSkipped(); 172 } 173 174 if ( function_exists( 'wp_initialize_site' ) ) { 175 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 167 176 } 168 177 … … 204 213 /** 205 214 * @group bp_blogs_format_activity_action_new_blog 206 * @expectedDeprecated wpmu_new_blog207 215 */ 208 216 public function test_bp_activity_format_activity_action_new_blog_backpat() { 209 217 if ( ! is_multisite() ) { 210 218 $this->markTestSkipped(); 219 } 220 221 if ( function_exists( 'wp_initialize_site' ) ) { 222 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 211 223 } 212 224 … … 233 245 /** 234 246 * @group bp_blogs_format_activity_action_new_blog_post 235 * @expectedDeprecated wpmu_new_blog236 247 */ 237 248 public function test_bp_activity_format_activity_action_new_blog_post_backpat() { 238 249 if ( ! is_multisite() ) { 239 250 $this->markTestSkipped(); 251 } 252 253 if ( function_exists( 'wp_initialize_site' ) ) { 254 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 240 255 } 241 256 … … 262 277 /** 263 278 * @group bp_blogs_format_activity_action_new_blog_comment 264 * @expectedDeprecated wpmu_new_blog265 279 */ 266 280 public function test_bp_activity_format_activity_action_new_blog_comment_backpat() { 267 281 if ( ! is_multisite() ) { 268 282 $this->markTestSkipped(); 283 } 284 285 if ( function_exists( 'wp_initialize_site' ) ) { 286 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 269 287 } 270 288 -
trunk/tests/phpunit/testcases/blogs/cache.php
r12244 r12246 8 8 /** 9 9 * @group bp_blogs_update_meta_cache 10 * @expectedDeprecated wpmu_new_blog11 10 */ 12 11 public function test_bp_blogs_update_meta_cache() { 13 12 if ( ! is_multisite() ) { 14 13 $this->markTestSkipped(); 14 } 15 16 if ( function_exists( 'wp_initialize_site' ) ) { 17 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 15 18 } 16 19 … … 90 93 * @group bp_blogs_update_meta_cache 91 94 * @group bp_has_blogs 92 * @expectedDeprecated wpmu_new_blog93 95 */ 94 96 public function test_bp_blogs_update_meta_cache_bp_has_blogs() { 95 97 if ( ! is_multisite() ) { 96 98 $this->markTestSkipped(); 99 } 100 101 if ( function_exists( 'wp_initialize_site' ) ) { 102 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 97 103 } 98 104 … … 185 191 * @group bp_blogs_update_meta_cache 186 192 * @group bp_has_blogs 187 * @expectedDeprecated wpmu_new_blog188 193 */ 189 194 public function test_bp_blogs_update_meta_cache_bp_has_blogs_false() { 190 195 if ( ! is_multisite() ) { 191 196 $this->markTestSkipped(); 197 } 198 199 if ( function_exists( 'wp_initialize_site' ) ) { 200 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 192 201 } 193 202 … … 261 270 /** 262 271 * @group bp_blogs_total_blogs 263 * @expectedDeprecated wpmu_new_blog264 272 * @expectedDeprecated delete_blog 265 273 */ … … 267 275 if ( ! is_multisite() ) { 268 276 $this->markTestSkipped(); 277 } 278 279 if ( function_exists( 'wp_initialize_site' ) ) { 280 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 281 $this->setExpectedDeprecated( 'delete_blog' ); 269 282 } 270 283 … … 297 310 /** 298 311 * @group update_blog_details 299 * @expectedDeprecated wpmu_new_blog300 312 */ 301 313 public function test_update_blog_details_should_purge_blogmeta_cache() { 302 314 if ( ! is_multisite() ) { 303 315 $this->markTestSkipped(); 316 } 317 318 if ( function_exists( 'wp_initialize_site' ) ) { 319 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 304 320 } 305 321 -
trunk/tests/phpunit/testcases/blogs/class-bp-blogs-blog.php
r12244 r12246 6 6 */ 7 7 class BP_Tests_BP_Blogs_Blog_TestCases extends BP_UnitTestCase { 8 /**9 * @expectedDeprecated wpmu_new_blog10 */11 8 public function test_get_with_search_terms() { 12 9 if ( ! is_multisite() ) { 13 10 $this->markTestSkipped(); 11 } 12 13 if ( function_exists( 'wp_initialize_site' ) ) { 14 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 14 15 } 15 16 … … 35 36 /** 36 37 * @ticket BP5858 37 * @expectedDeprecated wpmu_new_blog38 38 */ 39 39 public function test_get_with_search_terms_should_match_description() { 40 40 if ( ! is_multisite() ) { 41 41 $this->markTestSkipped(); 42 } 43 44 if ( function_exists( 'wp_initialize_site' ) ) { 45 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 42 46 } 43 47 … … 64 68 } 65 69 66 /**67 * @expectedDeprecated wpmu_new_blog68 */69 70 public function test_search_blogs() { 70 71 if ( ! is_multisite() ) { 71 72 $this->markTestSkipped(); 73 } 74 75 if ( function_exists( 'wp_initialize_site' ) ) { 76 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 72 77 } 73 78 … … 94 99 /** 95 100 * @group get_by_letter 96 * @expectedDeprecated wpmu_new_blog97 101 */ 98 102 public function test_get_by_letter() { … … 100 104 $this->markTestSkipped(); 101 105 return; 106 } 107 108 if ( function_exists( 'wp_initialize_site' ) ) { 109 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 102 110 } 103 111 … … 124 132 /** 125 133 * @group get_order_by 126 * @expectedDeprecated wpmu_new_blog127 134 */ 128 135 public function test_get_order_by() { 129 136 if ( ! is_multisite() ) { 130 137 $this->markTestSkipped(); 138 } 139 140 if ( function_exists( 'wp_initialize_site' ) ) { 141 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 131 142 } 132 143 -
trunk/tests/phpunit/testcases/blogs/functions.php
r12245 r12246 282 282 /** 283 283 * @group bp_blogs_restore_data 284 * @expectedDeprecated wpmu_new_blog285 284 */ 286 285 public function test_bp_blogs_restore_data() { 287 286 if ( ! is_multisite() ) { 288 287 $this->markTestSkipped(); 288 } 289 290 if ( function_exists( 'wp_initialize_site' ) ) { 291 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 289 292 } 290 293 … … 888 891 public function test_bp_blogs_comment_sync_activity_comment_for_custom_post_type() { 889 892 if ( is_multisite() ) { 890 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 893 if ( function_exists( 'wp_initialize_site' ) ) { 894 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 895 } 896 891 897 $b = self::factory()->blog->create(); 892 898 switch_to_blog( $b ); … … 989 995 /** 990 996 * @group bp_blogs_record_existing_blogs 991 * @expectedDeprecated wpmu_new_blog992 997 */ 993 998 public function test_bp_blogs_record_existing_blogs_limit() { … … 996 1001 } 997 1002 1003 if ( function_exists( 'wp_initialize_site' ) ) { 1004 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 1005 } 1006 998 1007 $old_user = get_current_user_id(); 999 1008 … … 1022 1031 /** 1023 1032 * @group bp_blogs_remove_blog 1024 * @expectedDeprecated wpmu_new_blog1025 * @expectedDeprecated delete_blog1026 1033 */ 1027 1034 public function test_bp_blogs_remove_blog() { 1028 1035 if ( ! is_multisite() ) { 1029 1036 $this->markTestSkipped(); 1037 } 1038 1039 if ( function_exists( 'wp_initialize_site' ) ) { 1040 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 1041 $this->setExpectedDeprecated( 'delete_blog' ); 1030 1042 } 1031 1043 … … 1071 1083 /** 1072 1084 * @group bp_blogs_remove_blog_for_user 1073 * @expectedDeprecated wpmu_new_blog1074 1085 */ 1075 1086 public function test_bp_blogs_remove_blog_for_user_is_contributor() { 1076 1087 if ( ! is_multisite() ) { 1077 1088 $this->markTestSkipped(); 1089 } 1090 1091 if ( function_exists( 'wp_initialize_site' ) ) { 1092 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 1078 1093 } 1079 1094 -
trunk/tests/phpunit/testcases/core/avatars.php
r12244 r12246 19 19 /** 20 20 * @ticket BP4948 21 * @expectedDeprecated wpmu_new_blog22 21 */ 23 22 function test_avatars_on_non_root_blog() { … … 25 24 if ( ! is_multisite() ) { 26 25 $this->markTestSkipped(); 26 } 27 28 if ( function_exists( 'wp_initialize_site' ) ) { 29 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 27 30 } 28 31 -
trunk/tests/phpunit/testcases/core/caps.php
r12243 r12246 6 6 */ 7 7 class BP_Tests_Core_Caps extends BP_UnitTestCase { 8 /**9 * @expectedDeprecated wpmu_new_blog10 */11 8 public function test_bp_current_user_can_should_interpret_integer_second_param_as_a_blog_id() { 12 9 if ( ! is_multisite() ) { 13 10 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 11 } 12 13 if ( function_exists( 'wp_initialize_site' ) ) { 14 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 14 15 } 15 16 … … 30 31 /** 31 32 * @ticket BP6501 32 * @expectedDeprecated wpmu_new_blog33 33 */ 34 34 public function test_bp_current_user_can_should_respect_blog_id_passed_in_args_array() { 35 35 if ( ! is_multisite() ) { 36 36 $this->markTestSkipped( __METHOD__ . ' requires multisite.' ); 37 } 38 39 if ( function_exists( 'wp_initialize_site' ) ) { 40 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 37 41 } 38 42 -
trunk/tests/phpunit/testcases/core/functions/bpCoreGetDirectoryPageIds.php
r12244 r12246 255 255 } 256 256 257 /**258 * @expectedDeprecated wpmu_new_blog259 */260 257 public function test_bp_core_get_directory_pages_multisite_delete_post_with_same_bp_page_id() { 261 258 if ( ! is_multisite() ) { 262 259 $this->markTestSkipped(); 260 } 261 262 if ( function_exists( 'wp_initialize_site' ) ) { 263 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 263 264 } 264 265 -
trunk/tests/phpunit/testcases/members/functions.php
r12245 r12246 516 516 517 517 if ( is_multisite() ) { 518 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 518 if ( function_exists( 'wp_initialize_site' ) ) { 519 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 520 } 519 521 520 522 $signups['ms-blog'] = array( 'signup_id' => self::factory()->signup->create( array( -
trunk/tests/phpunit/testcases/routing/url.php
r12245 r12246 42 42 // (3) Multisite, root blog other than 1 43 43 if ( is_multisite() ) { 44 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 44 if ( function_exists( 'wp_initialize_site' ) ) { 45 $this->setExpectedDeprecated( 'wpmu_new_blog' ); 46 } 45 47 46 48 $original_root_blog = bp_get_root_blog_id();
Note: See TracChangeset
for help on using the changeset viewer.