Changeset 7039 for trunk/tests/testcases/url/url.php
- Timestamp:
- 05/09/2013 01:19:50 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/testcases/url/url.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/url/url.php
r6907 r7039 10 10 11 11 $this->old_current_user = get_current_user_id(); 12 wp_set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );12 $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) ); 13 13 } 14 14 15 15 public function tearDown() { 16 16 parent::tearDown(); 17 wp_set_current_user( $this->old_current_user );17 $this->set_current_user( $this->old_current_user ); 18 18 } 19 19
Note: See TracChangeset
for help on using the changeset viewer.