You are here

public function AggregatorTestBase::getRSS091Sample in Drupal 8

Same name in this branch
  1. 8 core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::getRSS091Sample()
  2. 8 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::getRSS091Sample()
Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::getRSS091Sample()

Returns a example RSS091 feed.

Return value

string Path to the feed.

4 calls to AggregatorTestBase::getRSS091Sample()
AggregatorAdminTest::testOverviewPage in core/modules/aggregator/tests/src/Functional/AggregatorAdminTest.php
Tests the overview page.
AggregatorDisplayConfigurableTest::testFeedDisplayConfigurable in core/modules/aggregator/tests/src/Functional/AggregatorDisplayConfigurableTest.php
Sets feed base fields to configurable display and checks settings are respected.
FeedParserTest::testRSS091Sample in core/modules/aggregator/tests/src/Functional/FeedParserTest.php
Tests a feed that uses the RSS 0.91 format.
UpdateFeedItemTest::testUpdateFeedItem in core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
Tests running "update items" from 'admin/config/services/aggregator' page.

File

core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php, line 342

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

Code

public function getRSS091Sample() {
  return $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'aggregator') . '/tests/modules/aggregator_test/aggregator_test_rss091.xml';
}