Changeset 34802 for trunk/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 10/03/2015 05:14:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/feed/rss2.php
r34092 r34802 10 10 */ 11 11 class Tests_Feed_RSS2 extends WP_UnitTestCase { 12 private $permalink_structure = '';13 14 12 static $user; 15 13 static $posts; … … 41 39 42 40 public function setUp() { 43 global $wp_rewrite;44 $this->permalink_structure = get_option( 'permalink_structure' );45 $wp_rewrite->set_permalink_structure( '' );46 $wp_rewrite->flush_rules();47 48 41 parent::setUp(); 49 42 … … 52 45 // this seems to break something 53 46 update_option('use_smilies', false); 54 }55 56 public function tearDown() {57 global $wp_rewrite;58 $wp_rewrite->set_permalink_structure( $this->permalink_structure );59 $wp_rewrite->flush_rules();60 47 } 61 48
Note: See TracChangeset
for help on using the changeset viewer.