Changeset 52010 for trunk/tests/phpunit/tests/user/multisite.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/multisite.php
r51869 r52010 12 12 class Tests_Multisite_User extends WP_UnitTestCase { 13 13 14 function test_remove_user_from_blog() {14 public function test_remove_user_from_blog() { 15 15 $user1 = self::factory()->user->create_and_get(); 16 16 $user2 = self::factory()->user->create_and_get(); … … 29 29 * Test the returned data from get_blogs_of_user() 30 30 */ 31 function test_get_blogs_of_user() {31 public function test_get_blogs_of_user() { 32 32 $user1_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); 33 33 … … 99 99 * @expectedDeprecated is_blog_user 100 100 */ 101 function test_is_blog_user() {101 public function test_is_blog_user() { 102 102 global $wpdb; 103 103 … … 120 120 } 121 121 122 function test_is_user_member_of_blog() {122 public function test_is_user_member_of_blog() { 123 123 global $wpdb; 124 124 … … 181 181 * @ticket 23192 182 182 */ 183 function test_is_user_spammy() {183 public function test_is_user_spammy() { 184 184 $user_id = self::factory()->user->create( 185 185 array( … … 210 210 * @ticket 20601 211 211 */ 212 function test_user_member_of_blog() {212 public function test_user_member_of_blog() { 213 213 global $wp_rewrite; 214 214 … … 249 249 } 250 250 251 function test_revoked_super_admin_can_be_deleted() {251 public function test_revoked_super_admin_can_be_deleted() { 252 252 if ( isset( $GLOBALS['super_admins'] ) ) { 253 253 $old_global = $GLOBALS['super_admins']; … … 266 266 } 267 267 268 function test_revoked_super_admin_is_deleted() {268 public function test_revoked_super_admin_is_deleted() { 269 269 if ( isset( $GLOBALS['super_admins'] ) ) { 270 270 $old_global = $GLOBALS['super_admins']; … … 285 285 } 286 286 287 function test_super_admin_cannot_be_deleted() {287 public function test_super_admin_cannot_be_deleted() { 288 288 if ( isset( $GLOBALS['super_admins'] ) ) { 289 289 $old_global = $GLOBALS['super_admins']; … … 304 304 * @ticket 27205 305 305 */ 306 function test_granting_super_admins() {306 public function test_granting_super_admins() { 307 307 if ( isset( $GLOBALS['super_admins'] ) ) { 308 308 $old_global = $GLOBALS['super_admins'];
Note: See TracChangeset
for help on using the changeset viewer.