function FeedParserTest::setUp
Overrides AggregatorTestBase::setUp
File
- 
              core/
modules/ aggregator/ tests/ src/ Functional/ FeedParserTest.php, line 26  
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.