function AggregatorTestCase::getAtomSample

1 call to AggregatorTestCase::getAtomSample()
FeedParserTestCase::testAtomSample in modules/aggregator/aggregator.test
Tests a feed that uses the Atom format.

File

modules/aggregator/aggregator.test, line 285

Class

AggregatorTestCase
Defines a base class for testing the Aggregator module.

Code

function getAtomSample() {
    // The content of this sample ATOM feed is based directly off of the
    // example provided in RFC 4287.
    return $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'aggregator') . '/tests/aggregator_test_atom.xml';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.