function MenuUninstallTest::testMenuUninstall
Same name in other branches
- 9 core/modules/menu_ui/tests/src/Functional/MenuUninstallTest.php \Drupal\Tests\menu_ui\Functional\MenuUninstallTest::testMenuUninstall()
- 8.9.x core/modules/menu_ui/tests/src/Functional/MenuUninstallTest.php \Drupal\Tests\menu_ui\Functional\MenuUninstallTest::testMenuUninstall()
- 11.x core/modules/menu_ui/tests/src/Functional/MenuUninstallTest.php \Drupal\Tests\menu_ui\Functional\MenuUninstallTest::testMenuUninstall()
Tests Menu uninstall.
File
-
core/
modules/ menu_ui/ tests/ src/ Functional/ MenuUninstallTest.php, line 30
Class
- MenuUninstallTest
- Tests that uninstalling menu does not remove custom menus.
Namespace
Drupal\Tests\menu_ui\FunctionalCode
public function testMenuUninstall() : void {
\Drupal::service('module_installer')->uninstall([
'menu_ui',
]);
\Drupal::entityTypeManager()->getStorage('menu')
->resetCache([
'admin',
]);
$this->assertNotEmpty(Menu::load('admin'), 'The \'admin\' menu still exists after uninstalling Menu UI module.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.