diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php index 6ef37c8..96bdbd1 100644 --- a/core/modules/menu_ui/src/Tests/MenuTest.php +++ b/core/modules/menu_ui/src/Tests/MenuTest.php @@ -686,9 +686,6 @@ function disableMenuLink(MenuLinkContent $item) { $edit['enabled'] = FALSE; $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save')); - // Clear the internal cache of the menu tree in the test. - \Drupal::menuTree()->resetDefinitions(); - // Unlike most other modules, there is no confirmation message displayed. // Verify in the database. $this->assertMenuLink($item->getPluginId(), array('hidden' => 1));