Use @expectedDeprecated. see #25282, [25408].

git-svn-id: https://develop.svn.wordpress.org/trunk@25409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-09-12 18:37:32 +00:00
parent d5d476974e
commit 4c8f1e263a
11 changed files with 93 additions and 61 deletions

View File

@@ -8,7 +8,6 @@ if ( is_multisite() ) :
* @group multisite
*/
class Tests_MS extends WP_UnitTestCase {
protected $deprecated_functions = array( 'is_blog_user', 'get_dashboard_blog' );
protected $plugin_hook_count = 0;
function setUp() {
@@ -137,6 +136,9 @@ class Tests_MS extends WP_UnitTestCase {
$this->assertEquals( array(), get_blogs_of_user( $user1_id ) );
}
/**
* @expectedDeprecated is_blog_user
*/
function test_is_blog_user() {
global $wpdb;
@@ -263,6 +265,9 @@ class Tests_MS extends WP_UnitTestCase {
$this->assertFalse( users_can_register_signup_filter() );
}
/**
* @expectedDeprecated get_dashboard_blog
*/
function test_get_dashboard_blog() {
// if there is no dashboard blog set, current blog is used
$dashboard_blog = get_dashboard_blog();