Changeset 34802 for trunk/tests/phpunit/tests/user/author.php
- Timestamp:
- 10/03/2015 05:14:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/author.php
r34687 r34802 15 15 function setUp() { 16 16 parent::setUp(); 17 18 global $wp_rewrite;19 $this->permalink_structure = get_option( 'permalink_structure' );20 $wp_rewrite->set_permalink_structure( '' );21 $wp_rewrite->flush_rules();22 17 23 18 $this->author_id = $this->factory->user->create( array( … … 43 38 44 39 function tearDown() { 45 global $wp_rewrite;46 $wp_rewrite->set_permalink_structure( $this->permalink_structure );47 $wp_rewrite->flush_rules();48 49 40 wp_reset_postdata(); 50 41 parent::tearDown();
Note: See TracChangeset
for help on using the changeset viewer.