Changeset 13980 for trunk/tests/phpunit/testcases/members/functions.php
- Timestamp:
- 07/27/2024 04:30:23 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/functions.php
r13894 r13980 33 33 34 34 // 1. Admin can delete user account 35 $this->set_current_user( $admin_user );35 self::set_current_user( $admin_user ); 36 36 $user1 = self::factory()->user->create( array( 'role' => 'subscriber' ) ); 37 37 bp_core_delete_account( $user1 ); … … 52 52 $user3 = self::factory()->user->create( array( 'role' => 'subscriber' ) ); 53 53 $user4 = self::factory()->user->create( array( 'role' => 'subscriber' ) ); 54 $this->set_current_user( $user3 );54 self::set_current_user( $user3 ); 55 55 bp_core_delete_account( $user4 ); 56 56 $maybe_user = new WP_User( $user4 ); … … 59 59 60 60 // Cleanup 61 $this->set_current_user( $current_user );61 self::set_current_user( $current_user ); 62 62 bp_update_option( 'bp-disable-account-deletion', $deletion_disabled ); 63 63 } … … 747 747 748 748 // Create the signup. 749 $this->factory->signup->create( array(749 self::factory()->signup->create( array( 750 750 'user_login' => 'test', 751 751 'user_email' => 'test@example.com',
Note: See TracChangeset
for help on using the changeset viewer.