Changeset 13980 for trunk/tests/phpunit/testcases/admin/functions.php
- Timestamp:
- 07/27/2024 04:30:23 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/admin/functions.php
r13777 r13980 9 9 parent::set_up(); 10 10 $this->old_current_user = get_current_user_id(); 11 $this->set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );11 self::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 24 parent::tear_down(); 24 $this->set_current_user( $this->old_current_user );25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.