- Timestamp:
- 07/27/2024 04:30:23 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/community-visibility.php
r13533 r13980 11 11 $this->old_user = get_current_user_id(); 12 12 $this->logged_in_user = self::factory()->user->create(); 13 $this->set_current_user( $this->logged_in_user );13 self::set_current_user( $this->logged_in_user ); 14 14 15 15 // Save a typical setting. … … 21 21 22 22 public function tear_down() { 23 parent::tear_down(); 24 $this->set_current_user( $this->old_user ); 23 self::set_current_user( $this->old_user ); 25 24 // Reset site to totally open. 26 25 delete_option( '_bp_community_visibility' ); 26 parent::tear_down(); 27 27 } 28 28
Note: See TracChangeset
for help on using the changeset viewer.