Skip to:
Content

BuddyPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.