Changeset 836 in tests
- Timestamp:
- 07/01/2012 07:11:42 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-testcase/test_includes_feed_rss2.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-testcase/test_includes_feed_rss2.php
r828 r836 1 1 <?php 2 3 include_once(DIR_TESTDATA . '/sample_blogs.php');4 2 5 3 // test the RSS 2.0 feed by generating a feed, parsing it, and checking that the … … 8 6 // and contains the right stuff. 9 7 10 class TestFeedRss2 extends _WPMediumBlog{8 class TestFeedRss2 extends WP_UnitTestCase { 11 9 12 10 function setUp() { 13 11 parent::setUp(); 12 13 $this->factory->post->create_many( 25 ); 14 14 15 $this->post_count = get_option('posts_per_rss'); 15 16 $this->excerpt_only = get_option('rss_use_excerpt'); … … 33 34 34 35 function test_rss() { 35 $this-> http('/feed/');36 $this->go_to('/feed/'); 36 37 $feed = $this->do_rss2(); 37 38 $xml = xml_to_array($feed); … … 53 54 54 55 function test_channel() { 55 $this-> http('/feed/');56 $this->go_to('/feed/'); 56 57 $feed = $this->do_rss2(); 57 58 $xml = xml_to_array($feed); … … 78 79 function test_items() { 79 80 $this->knownUTBug(32); 80 $this-> http('/feed/');81 $this->go_to('/feed/'); 81 82 $feed = $this->do_rss2(); 82 83 $xml = xml_to_array($feed);
Note: See TracChangeset
for help on using the changeset viewer.