function VocabularyUiTest::testOverviewOverride
Tests that the overview form is overridable in hook_entity_type_alter().
File
-
core/
modules/ taxonomy/ tests/ src/ Functional/ VocabularyUiTest.php, line 195
Class
- VocabularyUiTest
- Tests the taxonomy vocabulary interface.
Namespace
Drupal\Tests\taxonomy\FunctionalCode
public function testOverviewOverride() : void {
\Drupal::service('module_installer')->install([
'taxonomy_overview_override_test',
]);
$this->drupalGet($this->vocabulary
->toUrl('overview-form'));
$this->assertSession()
->pageTextContains('No unicorns here, only llamas');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.