Changeset 13980 for trunk/tests/phpunit/testcases/routing/members.php
- Timestamp:
- 07/27/2024 04:30:23 PM (22 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/testcases/routing/members.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/members.php
r13720 r13980 14 14 $this->old_current_user = get_current_user_id(); 15 15 $this->permalink_structure = get_option( 'permalink_structure', '' ); 16 $this->set_current_user( self::factory()->user->create( array( 'user_login' => 'paulgibbs', 'role' => 'subscriber' ) ) );16 self::set_current_user( self::factory()->user->create( array( 'user_login' => 'paulgibbs', 'role' => 'subscriber' ) ) ); 17 17 } 18 18 19 19 public function tear_down() { 20 $this->set_current_user( $this->old_current_user );20 self::set_current_user( $this->old_current_user ); 21 21 $this->set_permalink_structure( $this->permalink_structure ); 22 22 23 parent::tear_down(); 23 24 }
Note: See TracChangeset
for help on using the changeset viewer.