Commit 3aa2cbb2 authored by catch's avatar catch

Issue #2554579 by Wim Leers: Forum index response is missing the vocabulary cache tag

parent 02a67863
......@@ -190,6 +190,7 @@ public function forumIndex() {
else {
// Set the page title to forum's vocabulary name.
$build['#title'] = $vocabulary->label();
$this->renderer->addCacheableDependency($build, $vocabulary);
}
return $build;
}
......
......@@ -235,6 +235,7 @@ function testForum() {
// Test the root forum page title change.
$this->drupalGet('forum');
$this->assertCacheTag('config:taxonomy.vocabulary.' . $this->forum['vid']);
$this->assertTitle(t('Forums | Drupal'));
$vocabulary = Vocabulary::load($this->forum['vid']);
$vocabulary->set('name', 'Discussions');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment