Changeset 31846 for trunk/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 03/20/2015 12:25:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/feed/rss2.php
r31845 r31846 10 10 */ 11 11 class Tests_Feed_RSS2 extends WP_UnitTestCase { 12 private $permalink_structure = ''; 12 13 13 function setUp() { 14 public function setUp() { 15 global $wp_rewrite; 16 $this->permalink_structure = get_option( 'permalink_structure' ); 17 $wp_rewrite->set_permalink_structure( '' ); 18 $wp_rewrite->flush_rules(); 19 14 20 parent::setUp(); 15 21 … … 23 29 // this seems to break something 24 30 update_option('use_smilies', false); 31 } 32 33 public function tearDown() { 34 global $wp_rewrite; 35 $wp_rewrite->set_permalink_structure( $this->permalink_structure ); 36 $wp_rewrite->flush_rules(); 25 37 } 26 38 … … 40 52 41 53 function test_rss() { 42 $this->go_to( '/feed/');54 $this->go_to( '/?feed=rss2' ); 43 55 $feed = $this->do_rss2(); 44 56 $xml = xml_to_array($feed); … … 60 72 61 73 function test_channel() { 62 $this->go_to( '/feed/');74 $this->go_to( '/?feed=rss2' ); 63 75 $feed = $this->do_rss2(); 64 76 $xml = xml_to_array($feed); … … 86 98 */ 87 99 function test_items() { 88 $this->go_to( '/feed/');100 $this->go_to( '/?feed=rss2' ); 89 101 $feed = $this->do_rss2(); 90 102 $xml = xml_to_array($feed);
Note: See TracChangeset
for help on using the changeset viewer.