diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php index 380e553..cf954ef 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php @@ -81,9 +81,12 @@ public function testBlockLinks() { 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(); + $view = entity_load('view', 'frontpage'); + $display = &$view->getDisplay('default'); + $display['display_options']['pager']['options']['items_per_page'] = 30; + $view->save(); + $view = entity_load('view', 'frontpage'); + $display = &$view->getDisplay('default'); // Create a feed with 30 items. $this->createSampleNodes(30); @@ -94,9 +97,5 @@ public function testFeedPage() { $this->drupalGet('aggregator/sources/' . $feed->id()); $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(); } } diff --git a/core/modules/file/lib/Drupal/file/Tests/FileFieldRSSContentTest.php b/core/modules/file/lib/Drupal/file/Tests/FileFieldRSSContentTest.php index 12f4f08..eef5d71 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileFieldRSSContentTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileFieldRSSContentTest.php @@ -12,6 +12,13 @@ */ class FileFieldRSSContentTest extends FileFieldTestBase { + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('node'); + public static function getInfo() { return array( 'name' => 'File field RSS content', diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php index 1e0adfb..ea7c507 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php @@ -21,7 +21,7 @@ class NodeRSSContentTest extends NodeTestBase { * * @var array */ - public static $modules = array('node_test'); + public static $modules = array('node_test', 'views'); public static function getInfo() { return array( diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php index 3d28ec0..4c3e3d3 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/RssTest.php @@ -17,7 +17,7 @@ class RssTest extends TaxonomyTestBase { * * @var array */ - public static $modules = array('node', 'field_ui'); + public static $modules = array('node', 'field_ui', 'views'); public static function getInfo() { return array(