Skip to:
Content

BuddyPress.org


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

Use setExpectedDeprecated for the 8 failing tests using update_user_status

See #8123

File:
1 edited

Legend:

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

    r12246 r12422  
    379379                }
    380380
     381                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     382                        $this->setExpectedDeprecated( 'update_user_status' );
     383                }
     384
    381385                $bp = buddypress();
    382386                $displayed_user = $bp->displayed_user;
    … …  
    407411                }
    408412
     413                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     414                        $this->setExpectedDeprecated( 'update_user_status' );
     415                }
     416
    409417                $bp = buddypress();
    410418                $displayed_user = $bp->displayed_user;
    … …  
    431439         */
    432440        public function test_bp_core_process_spammer_status_make_spam_user_filter() {
     441                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     442                        $this->setExpectedDeprecated( 'update_user_status' );
     443                }
     444
    433445                add_filter( 'make_spam_user', array( $this, 'notification_filter_callback' ) );
    434446
    … …  
    443455
    444456        public function test_bp_core_process_spammer_status_make_ham_user_filter() {
     457                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     458                        $this->setExpectedDeprecated( 'update_user_status' );
     459                }
     460
    445461                add_filter( 'make_ham_user', array( $this, 'notification_filter_callback' ) );
    446462
    … …  
    455471
    456472        public function test_bp_core_process_spammer_status_bp_make_spam_user_filter() {
     473                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     474                        $this->setExpectedDeprecated( 'update_user_status' );
     475                }
     476
    457477                add_filter( 'bp_make_spam_user', array( $this, 'notification_filter_callback' ) );
    458478
    … …  
    467487
    468488        public function test_bp_core_process_spammer_status_bp_make_ham_user_filter() {
     489                if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     490                        $this->setExpectedDeprecated( 'update_user_status' );
     491                }
     492
    469493                add_filter( 'bp_make_ham_user', array( $this, 'notification_filter_callback' ) );
    470494
Note: See TracChangeset for help on using the changeset viewer.