public function HierarchicalTaxonomyMenuBasicTest::testDynamicBlockTitleDisabled in Hierarchical Taxonomy Menu 8
Test dynamic block title disabled.
File
- tests/
src/ FunctionalJavascript/ HierarchicalTaxonomyMenuBasicTest.php, line 214
Class
- HierarchicalTaxonomyMenuBasicTest
- Tests the Hierarchical Taxonomy Menu basic config options.
Namespace
Drupal\Tests\hierarchical_taxonomy_menu\FunctionalJavascriptCode
public function testDynamicBlockTitleDisabled() {
$this->block
->set('settings', [
'label' => 'Hierarchical Taxonomy Menu',
'label_display' => 'visible',
'vocabulary' => $this->vocabulary
->id() . '|',
'dynamic_block_title' => FALSE,
]);
$this->block
->save();
$this
->drupalGet('taxonomy/term/1');
$block_title_element = $this
->getSession()
->getPage()
->find('css', '#block-hierarchicaltaxonomymenu h2');
$this
->assertEqual($block_title_element
->getText(), 'Hierarchical Taxonomy Menu');
}