Skip to content
Snippets Groups Projects

Issue #3081002: Main menu inaccessible after disabling Taxonomy Menu

Files
2
@@ -181,4 +181,25 @@ class TaxonomyMenuOperationsTest extends BrowserTestBase {
);
}
/**
* Test of disabling the Taxonomy term module.
*/
public function testDisableModule() {
// Uninstall the module and ensure the service provider's service is not registered.
\Drupal::service('module_installer')->uninstall(['taxonomy_menu']);
$this->assertFalse(\Drupal::hasService('taxonomy_menu.helper'), 'The taxonomy_menu.helper service does not exist in the DIC.');
// We should expect not to find this page.
$this->drupalGet('admin/structure/taxonomy_menu');
$this->assertSession()->pageTextContains('Page not found');
// We should expect to see the Test menu in list of menu.
$this->drupalGet('admin/structure/menu');
$this->assertSession()->pageTextContains('Test');
// We should expect to see the Test menu in list of taxonomy vocabularies.
$this->drupalGet('admin/structure/taxonomy');
$this->assertSession()->pageTextContains('Test');
}
}
Loading