Changeset 40520
- Timestamp:
- 04/22/2017 06:58:46 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpunit.xml.dist
r38840 r40520 24 24 <group>ajax</group> 25 25 <group>ms-files</group> 26 <group>ms-required</group> 26 27 <group>external-http</group> 27 28 </exclude> -
trunk/tests/phpunit/multisite.xml
r38840 r40520 25 25 <group>ajax</group> 26 26 <group>ms-files</group> 27 <group>ms-excluded</group> 27 28 <group>external-http</group> 28 29 <group>oembed-headers</group> -
trunk/tests/phpunit/tests/adminbar.php
r39948 r40520 73 73 /** 74 74 * @ticket 25162 75 * @group ms-excluded 75 76 */ 76 77 public function test_admin_bar_contains_correct_links_for_users_with_no_role() { … … 101 102 /** 102 103 * @ticket 25162 104 * @group ms-excluded 103 105 */ 104 106 public function test_admin_bar_contains_correct_links_for_users_with_role() { … … 132 134 * @ticket 25162 133 135 * @group multisite 136 * @group ms-required 134 137 */ 135 138 public function test_admin_bar_contains_correct_links_for_users_with_no_role_on_blog() { … … 182 185 * @ticket 25162 183 186 * @group multisite 187 * @group ms-required 184 188 */ 185 189 public function test_admin_bar_contains_correct_links_for_users_with_no_role_on_network() { … … 426 430 /** 427 431 * @ticket 37949 432 * @group ms-excluded 428 433 */ 429 434 public function test_admin_bar_contains_correct_about_link_for_users_with_role() { … … 446 451 /** 447 452 * @ticket 37949 453 * @group ms-excluded 448 454 */ 449 455 public function test_admin_bar_contains_correct_about_link_for_users_with_no_role() { … … 468 474 * @ticket 37949 469 475 * @group multisite 476 * @group ms-required 470 477 */ 471 478 public function test_admin_bar_contains_correct_about_link_for_users_with_no_role_in_multisite() { … … 587 594 /** 588 595 * @ticket 39082 596 * @group ms-required 589 597 */ 590 598 public function test_my_sites_network_menu_for_regular_user() { … … 605 613 /** 606 614 * @ticket 39082 615 * @group ms-required 607 616 */ 608 617 public function test_my_sites_network_menu_for_super_admin() { … … 625 634 /** 626 635 * @ticket 39082 636 * @group ms-required 627 637 */ 628 638 public function test_my_sites_network_menu_for_regular_user_with_network_caps() { -
trunk/tests/phpunit/tests/customize/setting.php
r40392 r40520 562 562 * @ticket 31428 563 563 * @group multisite 564 * @group ms-required 564 565 */ 565 566 function test_previewing_with_switch_to_blog() { -
trunk/tests/phpunit/tests/general/template.php
r38901 r40520 73 73 * @group site_icon 74 74 * @group multisite 75 * @group ms-required 75 76 */ 76 77 function test_has_site_icon_returns_true_when_called_for_other_site_with_site_icon_set() { … … 90 91 * @group site_icon 91 92 * @group multisite 93 * @group ms-required 92 94 */ 93 95 function test_has_site_icon_returns_false_when_called_for_other_site_without_site_icon_set() { … … 265 267 * @group custom_logo 266 268 * @group multisite 269 * @group ms-required 267 270 */ 268 271 function test_has_custom_logo_returns_true_when_called_for_other_site_with_custom_logo_set() { … … 282 285 * @group custom_logo 283 286 * @group multisite 287 * @group ms-required 284 288 */ 285 289 function test_has_custom_logo_returns_false_when_called_for_other_site_without_custom_logo_set() { … … 313 317 * @group custom_logo 314 318 * @group multisite 319 * @group ms-required 315 320 */ 316 321 function test_get_custom_logo_returns_logo_when_called_for_other_site_with_custom_logo_set() { … … 535 540 /** 536 541 * @ticket 38253 542 * @group ms-required 537 543 */ 538 544 function test_get_site_icon_url_preserves_switched_state() { … … 557 563 /** 558 564 * @ticket 38253 565 * @group ms-required 559 566 */ 560 567 function test_has_custom_logo_preserves_switched_state() { … … 579 586 /** 580 587 * @ticket 38253 588 * @group ms-required 581 589 */ 582 590 function test_get_custom_logo_preserves_switched_state() { -
trunk/tests/phpunit/tests/l10n/getLocale.php
r39005 r40520 18 18 } 19 19 20 /** 21 * @group ms-required 22 */ 20 23 public function test_local_option_should_take_precedence_on_multisite() { 21 24 if ( ! is_multisite() ) { … … 36 39 } 37 40 41 /** 42 * @group ms-required 43 */ 38 44 public function test_network_option_should_be_fallback_on_multisite() { 39 45 if ( ! is_multisite() ) { … … 53 59 } 54 60 61 /** 62 * @group ms-excluded 63 */ 55 64 public function test_option_should_be_respected_on_nonmultisite() { 56 65 if ( is_multisite() ) { -
trunk/tests/phpunit/tests/l10n/getUserLocale.php
r38955 r40520 67 67 } 68 68 69 /** 70 * @group ms-required 71 */ 69 72 public function test_user_locale_is_same_across_network() { 70 73 if ( ! is_multisite() ) { -
trunk/tests/phpunit/tests/link/getDashboardUrl.php
r39590 r40520 39 39 /** 40 40 * @ticket 39065 41 * @group ms-required 41 42 */ 42 43 public function test_get_dashboard_url_for_network_administrator_with_no_sites() { … … 59 60 /** 60 61 * @ticket 39065 62 * @group ms-required 61 63 */ 62 64 public function test_get_dashboard_url_for_administrator_of_different_site() { -
trunk/tests/phpunit/tests/oembed/controller.php
r36307 r40520 254 254 /** 255 255 * @group multisite 256 * @group ms-required 256 257 */ 257 258 function test_request_ms_child_in_root_blog() { -
trunk/tests/phpunit/tests/option/networkOption.php
r39556 r40520 12 12 */ 13 13 class Tests_Option_NetworkOption extends WP_UnitTestCase { 14 15 /** 16 * @group ms-required 17 */ 14 18 function test_add_network_option_not_available_on_other_network() { 15 19 if ( ! is_multisite() ) { … … 25 29 } 26 30 31 /** 32 * @group ms-required 33 */ 27 34 function test_add_network_option_available_on_same_network() { 28 35 if ( ! is_multisite() ) { … … 38 45 } 39 46 47 /** 48 * @group ms-required 49 */ 40 50 function test_delete_network_option_on_only_one_network() { 41 51 if ( ! is_multisite() ) { … … 55 65 /** 56 66 * @ticket 22846 67 * @group ms-excluded 57 68 */ 58 69 public function test_add_network_option_is_not_stored_as_autoload_option() { … … 72 83 /** 73 84 * @ticket 22846 85 * @group ms-excluded 74 86 */ 75 87 public function test_update_network_option_is_not_stored_as_autoload_option() { -
trunk/tests/phpunit/tests/option/siteTransient.php
r39556 r40520 45 45 /** 46 46 * @ticket 22846 47 * @group ms-excluded 47 48 */ 48 49 public function test_set_site_transient_is_not_stored_as_autoload_option() { -
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r40378 r40520 993 993 } 994 994 995 /** 996 * @group ms-required 997 */ 995 998 public function test_create_new_network_user_on_site_does_not_add_user_to_sub_site() { 996 999 if ( ! is_multisite() ) { … … 1022 1025 } 1023 1026 1027 /** 1028 * @group ms-required 1029 */ 1024 1030 public function test_create_new_network_user_on_sub_site_adds_user_to_site() { 1025 1031 if ( ! is_multisite() ) { … … 1055 1061 } 1056 1062 1063 /** 1064 * @group ms-required 1065 */ 1057 1066 public function test_create_existing_network_user_on_sub_site_has_error() { 1058 1067 if ( ! is_multisite() ) { … … 1442 1451 } 1443 1452 1453 /** 1454 * @group ms-excluded 1455 */ 1444 1456 public function test_update_user_role_invalid_privilege_deescalation() { 1445 1457 if ( is_multisite() ) { … … 1472 1484 } 1473 1485 1486 /** 1487 * @group ms-required 1488 */ 1474 1489 public function test_update_user_role_privilege_deescalation_multisite() { 1475 1490 if ( ! is_multisite() ) { … … 2221 2236 /** 2222 2237 * @ticket 39701 2238 * @group ms-required 2223 2239 */ 2224 2240 public function test_get_item_from_different_site_as_site_administrator() { … … 2242 2258 /** 2243 2259 * @ticket 39701 2260 * @group ms-required 2244 2261 */ 2245 2262 public function test_get_item_from_different_site_as_network_administrator() { … … 2263 2280 /** 2264 2281 * @ticket 39701 2282 * @group ms-required 2265 2283 */ 2266 2284 public function test_update_item_from_different_site_as_site_administrator() { … … 2286 2304 /** 2287 2305 * @ticket 39701 2306 * @group ms-required 2288 2307 */ 2289 2308 public function test_update_item_from_different_site_as_network_administrator() { … … 2309 2328 /** 2310 2329 * @ticket 39701 2330 * @group ms-required 2311 2331 */ 2312 2332 public function test_delete_item_from_different_site_as_site_administrator() { … … 2332 2352 /** 2333 2353 * @ticket 39701 2354 * @group ms-required 2334 2355 */ 2335 2356 public function test_delete_item_from_different_site_as_network_administrator() { -
trunk/tests/phpunit/tests/rewrite.php
r38654 r40520 120 120 * @ticket 35531 121 121 * @group multisite 122 * @group ms-required 122 123 */ 123 124 function test_url_to_postid_of_http_site_when_current_site_uses_https() { … … 316 317 /** 317 318 * Reveals bug introduced in WP 3.0 318 * 319 * Run tests using multisite `phpunit -c multisite` 319 * @group ms-required 320 320 */ 321 321 function test_url_to_postid_ms_home_url_collision() { … … 323 323 if ( ! is_multisite() ) { 324 324 $this->markTestSkipped( 'test_url_to_postid_ms_home_url_collision requires multisite' ); 325 return false;326 325 } 327 326 -
trunk/tests/phpunit/tests/theme/WPTheme.php
r37202 r40520 146 146 * 147 147 * @ticket 30594 148 * @group ms-required 148 149 */ 149 150 function test_wp_theme_network_enable_single_theme() { … … 166 167 * 167 168 * @ticket 30594 169 * @group ms-required 168 170 */ 169 171 function test_wp_theme_network_enable_multiple_themes() { … … 186 188 * 187 189 * @ticket 30594 190 * @group ms-required 188 191 */ 189 192 function test_network_disable_single_theme() { … … 210 213 * 211 214 * @ticket 30594 215 * @group ms-required 212 216 */ 213 217 function test_network_disable_multiple_themes() { -
trunk/tests/phpunit/tests/user.php
r38768 r40520 650 650 /** 651 651 * @ticket 27317 652 * @group ms-required 652 653 */ 653 654 function test_illegal_user_logins_multisite() { -
trunk/tests/phpunit/tests/user/capabilities.php
r40404 r40520 612 612 } 613 613 614 /** 615 * @group ms-required 616 */ 614 617 function test_super_admin_caps() { 615 618 if ( ! is_multisite() ) { 616 619 $this->markTestSkipped( 'Test only runs in multisite' ); 617 return;618 620 } 619 621 $caps = $this->getAllCapsAndRoles(); … … 1356 1358 } 1357 1359 1360 /** 1361 * @group ms-required 1362 */ 1358 1363 function test_borked_current_user_can_for_blog() { 1359 1364 if ( ! is_multisite() ) { 1360 1365 $this->markTestSkipped( 'Test only runs in multisite' ); 1361 return;1362 1366 } 1363 1367 … … 1417 1421 } 1418 1422 1423 /** 1424 * @group ms-required 1425 */ 1419 1426 function test_multisite_administrator_can_not_edit_users() { 1420 1427 if ( ! is_multisite() ) { 1421 1428 $this->markTestSkipped( 'Test only runs in multisite' ); 1422 return;1423 1429 } 1424 1430 … … 1451 1457 } 1452 1458 1459 /** 1460 * @group ms-required 1461 */ 1453 1462 public function test_only_super_admins_can_delete_users_on_multisite() { 1454 1463 if ( ! is_multisite() ) { … … 1465 1474 } 1466 1475 1476 /** 1477 * @group ms-excluded 1478 */ 1467 1479 public function test_only_admins_can_delete_users_on_single_site() { 1468 1480 if ( is_multisite() ) { … … 1523 1535 } 1524 1536 1537 /** 1538 * @group ms-required 1539 */ 1525 1540 function test_multisite_administrator_with_manage_network_users_can_edit_users() { 1526 1541 if ( ! is_multisite() ) { 1527 1542 $this->markTestSkipped( 'Test only runs in multisite' ); 1528 return;1529 1543 } 1530 1544 … … 1542 1556 } 1543 1557 1558 /** 1559 * @group ms-required 1560 */ 1544 1561 function test_multisite_administrator_with_manage_network_users_can_not_edit_super_admin() { 1545 1562 if ( ! is_multisite() ) { 1546 1563 $this->markTestSkipped( 'Test only runs in multisite' ); 1547 return;1548 1564 } 1549 1565 … … 1765 1781 /** 1766 1782 * @ticket 39063 1783 * @group ms-required 1767 1784 */ 1768 1785 public function test_only_super_admins_can_remove_themselves_on_multisite() { -
trunk/tests/phpunit/tests/user/countUsers.php
r35707 r40520 10 10 * 11 11 * @dataProvider data_count_users_strategies 12 * @group ms-excluded 12 13 */ 13 14 public function test_count_users_is_accurate( $strategy ) { … … 58 59 * @ticket 22993 59 60 * @group multisite 61 * @group ms-required 60 62 * 61 63 * @dataProvider data_count_users_strategies -
trunk/tests/phpunit/tests/user/query.php
r39915 r40520 552 552 } 553 553 554 /** 555 * @group ms-required 556 */ 554 557 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_blog_id_on_nonms() { 555 558 if ( is_multisite() ) { … … 570 573 } 571 574 575 /** 576 * @group ms-required 577 */ 572 578 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_current_blog_id_on_ms() { 573 579 if ( ! is_multisite() ) { … … 588 594 } 589 595 596 /** 597 * @group ms-required 598 */ 590 599 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_different_blog_id_on_ms_when_fields_all_with_meta() { 591 600 if ( ! is_multisite() ) { … … 613 622 /** 614 623 * @ticket 31878 624 * @group ms-required 615 625 */ 616 626 public function test_roles_and_caps_should_be_populated_for_explicit_value_of_different_blog_id_on_ms_when_fields_all() { … … 638 648 /** 639 649 * @ticket 32019 650 * @group ms-required 640 651 */ 641 652 public function test_who_authors() { … … 664 675 /** 665 676 * @ticket 32019 677 * @group ms-required 666 678 */ 667 679 public function test_who_authors_should_work_alongside_meta_query() { … … 699 711 /** 700 712 * @ticket 36724 713 * @group ms-required 701 714 */ 702 715 public function test_who_authors_should_work_alongside_meta_params() { … … 792 805 /** 793 806 * @ticket 32250 807 * @group ms-required 794 808 */ 795 809 public function test_has_published_posts_should_respect_blog_id() { … … 1359 1373 /** 1360 1374 * @ticket 22212 1375 * @group ms-required 1361 1376 */ 1362 1377 public function test_blog_id_should_restrict_by_blog_without_requiring_a_named_role() { … … 1381 1396 * @ticket 22212 1382 1397 * @ticket 21119 1398 * @group ms-required 1383 1399 */ 1384 1400 public function test_calling_prepare_query_a_second_time_should_not_add_another_cap_query_on_multisite() { -
trunk/tests/phpunit/tests/user/wpAuthenticateSpamCheck.php
r37316 r40520 5 5 */ 6 6 class Tests_User_WpAuthenticateSpamCheck extends WP_UnitTestCase { 7 8 /** 9 * @group ms-excluded 10 */ 7 11 function test_wp_authenticate_spam_check_returns_user_when_single_site() { 8 12 if ( is_multisite() ) { … … 18 22 } 19 23 24 /** 25 * @group ms-required 26 */ 20 27 function test_wp_authenticate_spam_check_returns_user_when_not_flagged() { 21 28 if ( ! is_multisite() ) { … … 31 38 } 32 39 40 /** 41 * @group ms-required 42 */ 33 43 function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() { 34 44 if ( ! is_multisite() ) { -
trunk/tests/phpunit/tests/user/wpDeleteUser.php
r38938 r40520 124 124 } 125 125 126 /** 127 * @group ms-excluded 128 */ 126 129 public function test_numeric_string_user_id() { 127 130 if ( is_multisite() ) { … … 145 148 /** 146 149 * @ticket 33800 150 * @group ms-excluded 147 151 */ 148 152 public function test_should_return_false_for_object_user_id() {
Note: See TracChangeset
for help on using the changeset viewer.