Skip to content
Snippets Groups Projects
Commit c636cccc authored by catch's avatar catch
Browse files

Issue #3273876 by mfb, smustgrave: Aggregator page contents could be empty due...

Issue #3273876 by mfb, smustgrave: Aggregator page contents could be empty due to missing cache context
parent 26a15a09
Branches
Tags
16 merge requests!8394[warning] array_flip(): Can only flip STRING and INTEGER values, when saving a non-revisionable custom content entity,!7780issue 3443822: fix for 'No route found for the specified format html. Supported formats: json, xml.',!5013Issue #3071143: Table Render Array Example Is Incorrect,!4848Issue #1566662: Update module should send notifications on Thursdays,!4792Issue #2230689: Remove redundant "Italic" style,!4220Issue #3368223: Link field > Access to internal links is not checked on display.,!3884Issue #3356842,!3870Issue #3087868,!3812Draft: Issue #3339373 by alexpott, andypost, mondrake:...,!3686Issue #3219967 against 9.5.x,!3683Issue #2939397: Clearing AliasManager cache with root path raises warning,!3543Issue #3344259: Allow ajax dialog to have focus configurable,!2205Quote all names in the regions section.,!1459Issue #3087632: menu_name max length is too long,!866Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers,!204Issue #3040556: It is not possible to react to an entity being duplicated
......@@ -73,8 +73,8 @@ protected function buildPageList(array $items, $feed_source = '') {
if ($items) {
$build['items'] = $this->entityTypeManager()->getViewBuilder('aggregator_item')
->viewMultiple($items, 'default');
$build['pager'] = ['#type' => 'pager'];
}
$build['pager'] = ['#type' => 'pager'];
return $build;
}
......
......@@ -103,6 +103,8 @@ public function testFeedPage() {
$feed = $this->createFeed();
$this->updateFeedItems($feed, 30);
// Request page with no feed items to ensure cache context is set correctly.
$this->drupalGet('aggregator', ['query' => ['page' => 2]]);
// Check for presence of an aggregator pager.
$this->drupalGet('aggregator');
$this->assertSession()->elementExists('xpath', '//ul[contains(@class, "pager__items")]');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment