protected function FeedParserTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/tests/src/Functional/FeedParserTest.php \Drupal\Tests\aggregator\Functional\FeedParserTest::setUp()
Overrides AggregatorTestBase::setUp
File
- core/
modules/ aggregator/ tests/ src/ Functional/ FeedParserTest.php, line 25
Class
- FeedParserTest
- Tests the built-in feed parser with valid feed samples.
Namespace
Drupal\Tests\aggregator\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Do not delete old aggregator items during these tests, since our sample
// feeds have hardcoded dates in them (which may be expired when this test
// is run).
$this
->config('aggregator.settings')
->set('items.expire', FeedStorageInterface::CLEAR_NEVER)
->save();
}