diff --git a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php index fb35980..c69869f 100644 --- a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php +++ b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php @@ -380,6 +380,7 @@ public function testBackToSiteLink() { } /** + * Tests that external links added to the menu appear in the toolbar. */ public function testExternalLink() { /** @var \Drupal\system\MenuInterface $menu */ @@ -392,12 +393,9 @@ public function testExternalLink() { ]; $this->drupalPostForm($menu->urlInfo('add-link-form'), $edit, 'Save'); - // @todo Remove this. - drupal_flush_all_caches(); - $this->drupalGet($menu->urlInfo('edit-form')); - $this->assertText('External URL'); + $this->drupalGet(Url::fromRoute('')); $this->assertText('External URL'); }