Skip to:
Content

BuddyPress.org

Changeset 12422


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

Use setExpectedDeprecated for the 8 failing tests using update_user_status

See #8123

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

Legend:

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

    r12246 r12422  
    290290        if ( function_exists( 'wp_initialize_site' ) ) {
    291291            $this->setExpectedDeprecated( 'wpmu_new_blog' );
     292        }
     293
     294        if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     295            $this->setExpectedDeprecated( 'update_user_status' );
    292296        }
    293297
  • trunk/tests/phpunit/testcases/core/class-bp-user-query.php

    r12329 r12422  
    390390     */
    391391    public function test_bp_user_query_type_alphabetical_spam_xprofileoff() {
     392        if ( function_exists( 'wp_get_registered_image_subsizes' ) ) {
     393            $this->setExpectedDeprecated( 'update_user_status' );
     394        }
     395
    392396        $u1 = self::factory()->user->create();
    393397        $u2 = self::factory()->user->create();
  • 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.