function AggregatorTestBase::getAtomSample

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

File

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

Class

AggregatorTestBase
Defines a base class for testing 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/aggregator_test_atom.xml';
}