Changeset 14070 for trunk/tests/phpunit/testcases/admin/functions.php
- Timestamp:
- 11/03/2024 06:19:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/admin/functions.php
r13980 r14070 9 9 parent::set_up(); 10 10 $this->old_current_user = get_current_user_id(); 11 self::set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );11 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 12 12 13 13 if ( ! function_exists( 'bp_admin' ) ) { … … 21 21 22 22 public function tear_down() { 23 self::set_current_user( $this->old_current_user );23 wp_set_current_user( $this->old_current_user ); 24 24 parent::tear_down(); 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.