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/avatars.php

    r12244 r12246  
    1919    /**
    2020     * @ticket BP4948
    21      * @expectedDeprecated wpmu_new_blog
    2221     */
    2322    function test_avatars_on_non_root_blog() {
     
    2524        if ( ! is_multisite() ) {
    2625            $this->markTestSkipped();
     26        }
     27
     28        if ( function_exists( 'wp_initialize_site' ) ) {
     29            $this->setExpectedDeprecated( 'wpmu_new_blog' );
    2730        }
    2831
Note: See TracChangeset for help on using the changeset viewer.