Create a feed and check that feed's page.
public function testFeedPage() {
// Increase the number of items published in the rss.xml feed so we have
// enough articles to test paging.
$config = config('system.rss');
$config
->set('items.limit', 30);
$config
->save();
// Create a feed with 30 items.
$this
->createSampleNodes(30);
$feed = $this
->createFeed();
$this
->updateFeedItems($feed, 30);
// Check for the presence of a pager.
$this
->drupalGet('aggregator/sources/' . $feed->fid);
$elements = $this
->xpath("//ul[@class=:class]", array(
':class' => 'pager',
));
$this
->assertTrue(!empty($elements), 'Individual source page contains a pager.');
// Reset the number of items in rss.xml to the default value.
$config
->set('items.limit', 10);
$config
->save();
}