Changeset 14070 for trunk/tests/phpunit/testcases/routing/settings.php
- Timestamp:
- 11/03/2024 06:19:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/settings.php
r13980 r14070 13 13 $this->old_current_user = get_current_user_id(); 14 14 $this->permalink_structure = get_option( 'permalink_structure', '' ); 15 self::set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );15 wp_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 );19 wp_set_current_user( $this->old_current_user ); 20 20 $this->set_permalink_structure( $this->permalink_structure ); 21 21
Note: See TracChangeset
for help on using the changeset viewer.