public function HierarchicalTaxonomyMenuTest::testBlockAvailability in Hierarchical Taxonomy Menu 8
Test that the block is available.
File
- tests/
src/ Functional/ HierarchicalTaxonomyMenuTest.php, line 51
Class
- HierarchicalTaxonomyMenuTest
- Tests the Hierarchical Taxonomy Menu.
Namespace
Drupal\Tests\hierarchical_taxonomy_menu\FunctionalCode
public function testBlockAvailability() {
$this
->drupalGet('/admin/structure/block');
$this
->clickLink('Place block');
$this
->assertSession()
->pageTextContains('Hierarchical Taxonomy Menu');
$this
->assertSession()
->linkByHrefExists('admin/structure/block/add/hierarchical_taxonomy_menu/', 0);
}