Changeset 35244 for trunk/tests/phpunit/tests/meta/slashes.php
- Timestamp:
- 10/17/2015 07:24:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/slashes.php
r35242 r35244 11 11 $this->author_id = self::factory()->user->create( array( 'role' => 'editor' ) ); 12 12 $this->post_id = self::factory()->post->create(); 13 $this->old_current_user = get_current_user_id(); 13 14 14 wp_set_current_user( $this->author_id ); 15 15 … … 21 21 $this->slash_6 = 'String with 6 slashes \\\\\\\\\\\\'; 22 22 $this->slash_7 = 'String with 7 slashes \\\\\\\\\\\\\\'; 23 }24 25 function tearDown() {26 wp_set_current_user( $this->old_current_user );27 parent::tearDown();28 23 } 29 24
Note: See TracChangeset
for help on using the changeset viewer.