Skip to:
Content

BuddyPress.org

Changeset 12244


Ignore:
Timestamp:
10/05/2018 03:22:28 PM (8 years ago)
Author:
boonebgorges
Message:

Tests: MS/non-MS tests should be marked skipped.

Fixes #6162.

Location:
trunk/tests/phpunit/testcases
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/functions.php

    r12243 r12244  
    761761        public function test_bp_activity_format_activity_action_custom_post_type_post_nonms() {
    762762                if ( is_multisite() ) {
    763                         return;
     763                        $this->markTestSkipped();
    764764                }
    765765
     
    809809        public function test_bp_activity_format_activity_action_custom_post_type_post_ms() {
    810810                if ( ! is_multisite() ) {
    811                         return;
     811                        $this->markTestSkipped();
    812812                }
    813813
     
    866866        public function test_bp_activity_format_activity_action_custom_string_post_type_post_nonms() {
    867867                if ( is_multisite() ) {
    868                         return;
     868                        $this->markTestSkipped();
    869869                }
    870870
     
    922922        public function test_bp_activity_format_activity_action_custom_string_post_type_post_ms() {
    923923                if ( ! is_multisite() ) {
    924                         return;
     924                        $this->markTestSkipped();
    925925                }
    926926
  • trunk/tests/phpunit/testcases/blogs/activity.php

    r12243 r12244  
    2828        public function test_bp_blogs_format_activity_action_new_blog() {
    2929                if ( ! is_multisite() ) {
    30                         return;
     30                        $this->markTestSkipped();
    3131                }
    3232
     
    5353        public function test_bp_blogs_format_activity_action_new_blog_post_nonms() {
    5454                if ( is_multisite() ) {
    55                         return;
     55                        $this->markTestSkipped();
    5656                }
    5757
     
    8787        public function test_bp_blogs_format_activity_action_new_blog_post_ms_rootblog() {
    8888                if ( ! is_multisite() ) {
    89                         return;
     89                        $this->markTestSkipped();
    9090                }
    9191
     
    122122        public function test_bp_blogs_format_activity_action_new_blog_post_ms_nonrootblog() {
    123123                if ( ! is_multisite() ) {
    124                         return;
     124                        $this->markTestSkipped();
    125125                }
    126126
     
    164164        public function test_bp_blogs_format_activity_action_new_blog_comment_ms_nonrootblog() {
    165165                if ( ! is_multisite() ) {
    166                         return;
     166                        $this->markTestSkipped();
    167167                }
    168168
     
    208208        public function test_bp_activity_format_activity_action_new_blog_backpat() {
    209209                if ( ! is_multisite() ) {
    210                         return;
     210                        $this->markTestSkipped();
    211211                }
    212212
     
    237237        public function test_bp_activity_format_activity_action_new_blog_post_backpat() {
    238238                if ( ! is_multisite() ) {
    239                         return;
     239                        $this->markTestSkipped();
    240240                }
    241241
     
    266266        public function test_bp_activity_format_activity_action_new_blog_comment_backpat() {
    267267                if ( ! is_multisite() ) {
    268                         return;
     268                        $this->markTestSkipped();
    269269                }
    270270
     
    323323        public function test_bp_blogs_format_activity_action_new_blog_post_no_title() {
    324324                if ( is_multisite() ) {
    325                         return;
     325                        $this->markTestSkipped();
    326326                }
    327327
     
    360360        public function test_bp_blogs_format_activity_action_new_blog_post_updated_without_title() {
    361361                if ( is_multisite() ) {
    362                         return;
     362                        $this->markTestSkipped();
    363363                }
    364364
  • trunk/tests/phpunit/testcases/blogs/cache.php

    r12243 r12244  
    1212        public function test_bp_blogs_update_meta_cache() {
    1313                if ( ! is_multisite() ) {
    14                         return;
     14                        $this->markTestSkipped();
    1515                }
    1616
     
    9494        public function test_bp_blogs_update_meta_cache_bp_has_blogs() {
    9595                if ( ! is_multisite() ) {
    96                         return;
     96                        $this->markTestSkipped();
    9797                }
    9898
     
    189189        public function test_bp_blogs_update_meta_cache_bp_has_blogs_false() {
    190190                if ( ! is_multisite() ) {
    191                         return;
     191                        $this->markTestSkipped();
    192192                }
    193193
     
    242242        public function test_bp_blogs_total_count_should_respect_cached_value_of_0() {
    243243                if ( ! is_multisite() ) {
    244                         return;
     244                        $this->markTestSkipped();
    245245                }
    246246
     
    266266        public function test_bp_blogs_total_blogs_count_after_delete_blog() {
    267267                if ( ! is_multisite() ) {
    268                         return;
     268                        $this->markTestSkipped();
    269269                }
    270270
     
    301301        public function test_update_blog_details_should_purge_blogmeta_cache() {
    302302                if ( ! is_multisite() ) {
    303                         return;
     303                        $this->markTestSkipped();
    304304                }
    305305
  • trunk/tests/phpunit/testcases/blogs/class-bp-blogs-blog.php

    r12243 r12244  
    1111        public function test_get_with_search_terms() {
    1212                if ( ! is_multisite() ) {
    13                         return;
     13                        $this->markTestSkipped();
    1414                }
    1515
     
    3939        public function test_get_with_search_terms_should_match_description() {
    4040                if ( ! is_multisite() ) {
    41                         return;
     41                        $this->markTestSkipped();
    4242                }
    4343
     
    6969        public function test_search_blogs() {
    7070                if ( ! is_multisite() ) {
    71                         return;
     71                        $this->markTestSkipped();
    7272                }
    7373
     
    9898        public function test_get_by_letter() {
    9999                if ( ! is_multisite() ) {
     100                        $this->markTestSkipped();
    100101                        return;
    101102                }
     
    127128        public function test_get_order_by() {
    128129                if ( ! is_multisite() ) {
    129                         return;
     130                        $this->markTestSkipped();
    130131                }
    131132
  • trunk/tests/phpunit/testcases/blogs/functions.php

    r12243 r12244  
    286286        public function test_bp_blogs_restore_data() {
    287287                if ( ! is_multisite() ) {
    288                         return;
     288                        $this->markTestSkipped();
    289289                }
    290290
     
    733733        public function test_bp_is_blog_public_zero_publish_post() {
    734734                if ( ! is_multisite() ) {
     735                        $this->markTestSkipped();
    735736                        return;
    736737                }
     
    993994        public function test_bp_blogs_record_existing_blogs_limit() {
    994995                if ( ! is_multisite() ) {
    995                         return;
     996                        $this->markTestSkipped();
    996997                }
    997998
     
    10271028        public function test_bp_blogs_remove_blog() {
    10281029                if ( ! is_multisite() ) {
    1029                         return;
     1030                        $this->markTestSkipped();
    10301031                }
    10311032
     
    10751076        public function test_bp_blogs_remove_blog_for_user_is_contributor() {
    10761077                if ( ! is_multisite() ) {
    1077                         return;
     1078                        $this->markTestSkipped();
    10781079                }
    10791080
  • trunk/tests/phpunit/testcases/blogs/template.php

    r11386 r12244  
    210210        public function test_bp_blogs_template_should_give_precedence_to_bpage_URL_param() {
    211211                if ( ! is_multisite() ) {
    212                         return;
     212                        $this->markTestSkipped();
    213213                }
    214214
     
    251251        public function test_bp_blogs_template_should_reset_0_pag_page_URL_param_to_default_pag_page_value() {
    252252                if ( ! is_multisite() ) {
    253                         return;
     253                        $this->markTestSkipped();
    254254                }
    255255
     
    292292        public function test_bp_blogs_template_should_give_precedence_to_num_URL_param() {
    293293                if ( ! is_multisite() ) {
    294                         return;
     294                        $this->markTestSkipped();
    295295                }
    296296
     
    333333        public function test_bp_blogs_template_should_reset_0_pag_num_URL_param_to_default_pag_num_value() {
    334334                if ( ! is_multisite() ) {
    335                         return;
     335                        $this->markTestSkipped();
    336336                }
    337337
  • trunk/tests/phpunit/testcases/core/avatars.php

    r12243 r12244  
    2424                // Do not pass 'Go', do not collect $200
    2525                if ( ! is_multisite() ) {
    26                         return;
     26                        $this->markTestSkipped();
    2727                }
    2828
  • trunk/tests/phpunit/testcases/core/class-bp-user-query.php

    r11737 r12244  
    333333        public function test_bp_user_query_type_alphabetical_spam_xprofileon() {
    334334                if ( is_multisite() ) {
    335                         return;
     335                        $this->markTestSkipped();
    336336                }
    337337
  • trunk/tests/phpunit/testcases/core/functions/bpCoreGetDirectoryPageIds.php

    r12243 r12244  
    260260        public function test_bp_core_get_directory_pages_multisite_delete_post_with_same_bp_page_id() {
    261261                if ( ! is_multisite() ) {
    262                         return;
     262                        $this->markTestSkipped();
    263263                }
    264264
     
    293293        public function test_bp_core_get_directory_pages_autocreate_register_pages_single_site() {
    294294                if ( is_multisite() ) {
    295                         return;
     295                        $this->markTestSkipped();
    296296                }
    297297
     
    320320        public function test_bp_core_get_directory_pages_autocreate_register_pages_multisite() {
    321321                if ( ! is_multisite() ) {
    322                         return;
     322                        $this->markTestSkipped();
    323323                }
    324324
  • trunk/tests/phpunit/testcases/groups/user_can.php

    r11972 r12244  
    3030        public function test_user_cannot_join_public_group_if_already_member_even_superadmin() {
    3131                if ( ! is_multisite() ) {
    32                         return;
     32                        $this->markTestSkipped();
    3333                }
    3434
     
    160160        public function test_user_cannot_receive_invitation_to_private_group_if_already_member_even_superadmin() {
    161161                if ( ! is_multisite() ) {
    162                         return;
     162                        $this->markTestSkipped();
    163163                }
    164164
     
    413413        public function test_user_can_groups_request_membership_for_super_admin() {
    414414                if ( ! is_multisite() ) {
    415                         return;
     415                        $this->markTestSkipped();
    416416                }
    417417
  • trunk/tests/phpunit/testcases/members/functions.php

    r12243 r12244  
    348348        public function test_bp_core_process_spammer_status() {
    349349                if ( is_multisite() ) {
    350                         return;
     350                        $this->markTestSkipped();
    351351                }
    352352
     
    376376        public function test_bp_core_process_spammer_status_ms_bulk_spam() {
    377377                if ( ! is_multisite() ) {
    378                         return;
     378                        $this->markTestSkipped();
    379379                }
    380380
     
    404404        public function test_bp_core_process_spammer_status_ms_bulk_ham() {
    405405                if ( ! is_multisite() ) {
    406                         return;
     406                        $this->markTestSkipped();
    407407                }
    408408
Note: See TracChangeset for help on using the changeset viewer.