Skip to:
Content

BuddyPress.org

Changeset 12423


Ignore:
Timestamp:
08/05/2019 05:45:34 AM (7 years ago)
Author:
imath
Message:

PHPUNIT: Set update_user_status() as expected to be deprecated only for multisite

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

Legend:

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

    r12422 r12423  
    292292                }
    293293
    294                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     294                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    295295                        $this->setExpectedDeprecated( 'update_user_status' );
    296296                }
  • trunk/tests/phpunit/testcases/core/class-bp-user-query.php

    r12422 r12423  
    390390         */
    391391        public function test_bp_user_query_type_alphabetical_spam_xprofileoff() {
    392                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     392                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    393393                        $this->setExpectedDeprecated( 'update_user_status' );
    394394                }
  • trunk/tests/phpunit/testcases/members/functions.php

    r12422 r12423  
    379379                }
    380380
    381                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     381                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    382382                        $this->setExpectedDeprecated( 'update_user_status' );
    383383                }
    … …  
    411411                }
    412412
    413                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     413                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    414414                        $this->setExpectedDeprecated( 'update_user_status' );
    415415                }
    … …  
    439439         */
    440440        public function test_bp_core_process_spammer_status_make_spam_user_filter() {
    441                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     441                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    442442                        $this->setExpectedDeprecated( 'update_user_status' );
    443443                }
    … …  
    455455
    456456        public function test_bp_core_process_spammer_status_make_ham_user_filter() {
    457                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     457                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    458458                        $this->setExpectedDeprecated( 'update_user_status' );
    459459                }
    … …  
    471471
    472472        public function test_bp_core_process_spammer_status_bp_make_spam_user_filter() {
    473                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     473                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    474474                        $this->setExpectedDeprecated( 'update_user_status' );
    475475                }
    … …  
    487487
    488488        public function test_bp_core_process_spammer_status_bp_make_ham_user_filter() {
    489                 if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     489                if ( is_multisite() && function_exists( 'wp_get_registered_image_subsizes' ) ) {
    490490                        $this->setExpectedDeprecated( 'update_user_status' );
    491491                }
Note: See TracChangeset for help on using the changeset viewer.