function AggregatorTestBase::getHtmlEntitiesSample

Same name in other branches
  1. 8.9.x core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::getHtmlEntitiesSample()
  2. 8.9.x core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::getHtmlEntitiesSample()

Returns an example feed.

Return value

string Path to the feed.

1 call to AggregatorTestBase::getHtmlEntitiesSample()
FeedParserTest::testHtmlEntitiesSample in core/modules/aggregator/tests/src/Functional/FeedParserTest.php
Tests a feed that uses HTML entities in item titles.

File

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

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

Code

public function getHtmlEntitiesSample() {
    return $GLOBALS['base_url'] . '/' . $this->getModulePath('aggregator') . '/tests/modules/aggregator_test/aggregator_test_title_entities.xml';
}

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