WordPress.org

Make WordPress Core

Changeset 696 in tests


Ignore:
Timestamp:
04/24/2012 10:15:27 PM (6 years ago)
Author:
ryan
Message:

Update tests to reflect that get_blogs_of_user() always returns an empty array for fail cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_user.php

    r690 r696  
    333333
    334334        // Logged out users don't have blogs.
    335         $this->assertFalse( get_blogs_of_user( 0 ) );
     335        $this->assertEquals( array(), get_blogs_of_user( 0 ) );
    336336
    337337        $user_id = $this->_make_user( 'subscriber' );
     
    341341        // Non-existent users don't have blogs.
    342342        $this->_destroy_user( $user_id );
    343         $this->assertFalse( get_blogs_of_user( $user_id ) );
     343        $this->assertEquals( array(), get_blogs_of_user( $user_id ) );
    344344    }
    345345
Note: See TracChangeset for help on using the changeset viewer.