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