function AggregatorTestBase::getAtomSample
Returns an example Atom feed.
Return value
string Path to the feed.
1 call to AggregatorTestBase::getAtomSample()
- FeedParserTest::testAtomSample in core/
modules/ aggregator/ tests/ src/ Functional/ FeedParserTest.php  - Tests a feed that uses the Atom format.
 
File
- 
              core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorTestBase.php, line 368  
Class
- AggregatorTestBase
 - Defines a base class for testing the Aggregator module.
 
Namespace
Drupal\Tests\aggregator\FunctionalCode
public function getAtomSample() {
  // The content of this sample ATOM feed is based directly off of the
  // example provided in RFC 4287.
  return $GLOBALS['base_url'] . '/' . $this->getModulePath('aggregator') . '/tests/modules/aggregator_test/aggregator_test_atom.xml';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.