Make WordPress Core

Changeset 836 in tests


Ignore:
Timestamp:
07/01/2012 07:11:42 PM (14 years ago)
Author:
maxcutler
Message:

Port test_includes_feed_rss2.php. Fixes #77.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test_includes_feed_rss2.php

    r828 r836  
    11<?php
    2 
    3 include_once(DIR_TESTDATA . '/sample_blogs.php');
    42
    53// test the RSS 2.0 feed by generating a feed, parsing it, and checking that the
     
    86// and contains the right stuff.
    97
    10 class TestFeedRss2 extends _WPMediumBlog {
     8class TestFeedRss2 extends WP_UnitTestCase {
    119
    1210        function setUp() {
    1311                parent::setUp();
     12
     13                $this->factory->post->create_many( 25 );
     14
    1415                $this->post_count = get_option('posts_per_rss');
    1516                $this->excerpt_only = get_option('rss_use_excerpt');
     
    3334
    3435        function test_rss() {
    35                 $this->http('/feed/');
     36                $this->go_to('/feed/');
    3637                $feed = $this->do_rss2();
    3738                $xml = xml_to_array($feed);
     
    5354
    5455        function test_channel() {
    55                 $this->http('/feed/');
     56                $this->go_to('/feed/');
    5657                $feed = $this->do_rss2();
    5758                $xml = xml_to_array($feed);
     
    7879        function test_items() {
    7980                $this->knownUTBug(32);
    80                 $this->http('/feed/');
     81                $this->go_to('/feed/');
    8182                $feed = $this->do_rss2();
    8283                $xml = xml_to_array($feed);
Note: See TracChangeset for help on using the changeset viewer.