Ticket #19500: 19500-unit-tests.diff
File 19500-unit-tests.diff, 1.0 KB (added by , 13 years ago) |
---|
-
wp-testcase/test_user.php
329 329 330 330 function test_get_blogs_of_user() { 331 331 // Usermeta cache is not cleared after user deletion. 332 $this->knownWPBug(19500);332 //$this->knownWPBug(19500); 333 333 334 334 // Logged out users don't have blogs. 335 $this->assert False(get_blogs_of_user( 0 ) );335 $this->assertEquals( array(), get_blogs_of_user( 0 ) ); 336 336 337 337 $user_id = $this->_make_user( 'subscriber' ); 338 338 $blogs = get_blogs_of_user( $user_id ); … … 340 340 341 341 // Non-existent users don't have blogs. 342 342 $this->_destroy_user( $user_id ); 343 $this->assert False(get_blogs_of_user( $user_id ) );343 $this->assertEquals( array(), get_blogs_of_user( $user_id ) ); 344 344 } 345 345 346 346 function test_is_user_member_of_blog() { 347 347 // Usermeta cache is not cleared after user deletion. 348 $this->knownWPBug(19500);348 //$this->knownWPBug(19500); 349 349 350 350 $old_current = get_current_user_id(); 351 351