Changeset 14070 for trunk/tests/phpunit/testcases/routing/groups.php
- Timestamp:
- 11/03/2024 06:19:06 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/testcases/routing/groups.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/groups.php
r13980 r14070 14 14 $this->old_current_user = get_current_user_id(); 15 15 $this->permalink_structure = get_option( 'permalink_structure', '' ); 16 self::set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );16 wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) ); 17 17 } 18 18 19 19 public function tear_down() { 20 self::set_current_user( $this->old_current_user );20 wp_set_current_user( $this->old_current_user ); 21 21 $this->set_permalink_structure( $this->permalink_structure ); 22 22
Note: See TracChangeset
for help on using the changeset viewer.