Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/05/2018 05:24:17 PM (6 years ago)
Author:
boonebgorges
Message:

Tests: Move wpmu_new_blog and delete_blog expectedDeprecated calls into test logic.

Use of the @expectedDeprecated annotation means that the deprecation notice is
expected across all versions of WordPress, while we in fact need to suppress the
notices only on WP 5.0+.

See #7984.

File:
1 edited

Legend:

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

    r12244 r12246  
    255255    }
    256256
    257     /**
    258      * @expectedDeprecated wpmu_new_blog
    259      */
    260257    public function test_bp_core_get_directory_pages_multisite_delete_post_with_same_bp_page_id() {
    261258        if ( ! is_multisite() ) {
    262259            $this->markTestSkipped();
     260        }
     261
     262        if ( function_exists( 'wp_initialize_site' ) ) {
     263            $this->setExpectedDeprecated( 'wpmu_new_blog' );
    263264        }
    264265
Note: See TracChangeset for help on using the changeset viewer.