function AggregatorTestBase::getAtomSample

1 call to AggregatorTestBase::getAtomSample()
FeedParserTest::testAtomSample in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php
Tests a feed that uses the Atom format.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php, line 342
Definition of Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\aggregator\Tests

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/modules/aggregator_test/aggregator_test_atom.xml';
}