Commit b520d1de authored by webchick's avatar webchick

Issue #2153973 by olli: Unable to hide views block title.

parent 63f2e26e
......@@ -265,6 +265,14 @@ public function testBlockRendering() {
$this->drupalGet('');
$result = $this->xpath('//div[contains(@class, "region-sidebar-first")]/div[contains(@class, "block-views")]/h2');
$this->assertEqual((string) $result[0], 'test_view_block');
// Hide the title.
$block->getPlugin()->setConfigurationValue('label_display', FALSE);
$block->save();
$this->drupalGet('');
$result = $this->xpath('//div[contains(@class, "region-sidebar-first")]/div[contains(@class, "block-views")]/h2');
$this->assertTrue(empty($result), 'The title is not visible.');
}
/**
......
......@@ -36,7 +36,6 @@ public function build() {
else {
$this->configuration['label'] = $this->configuration['views_label'];
}
$this->configuration['label_display'] = TRUE;
// Before returning the block output, convert it to a renderable array
// with contextual links.
$this->addContextualLinks($output);
......
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