WordPress.org

Make WordPress Core

Ticket #19500: 19500-unit-tests.diff

File 19500-unit-tests.diff, 1.0 KB (added by ryan, 2 years ago)
  • wp-testcase/test_user.php

     
    329329 
    330330        function test_get_blogs_of_user() { 
    331331                // Usermeta cache is not cleared after user deletion. 
    332                 $this->knownWPBug(19500); 
     332                //$this->knownWPBug(19500); 
    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' ); 
    338338                $blogs = get_blogs_of_user( $user_id ); 
     
    340340 
    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 
    346346        function test_is_user_member_of_blog() { 
    347347                // Usermeta cache is not cleared after user deletion. 
    348                 $this->knownWPBug(19500); 
     348                //$this->knownWPBug(19500); 
    349349 
    350350                $old_current = get_current_user_id(); 
    351351