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