From a21bb141da3818e8440b077665d89d1ac4eabfeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nilsved?= Date: Wed, 17 Oct 2018 13:48:52 +0200 Subject: [PATCH] Test plain url links and sections in menu widget --- tests/Feature/Fakes/UserlandServiceProvider.php | 5 ++--- tests/Feature/UserlandControllerTest.php | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Fakes/UserlandServiceProvider.php b/tests/Feature/Fakes/UserlandServiceProvider.php index 3b28da49..ab2eabf7 100644 --- a/tests/Feature/Fakes/UserlandServiceProvider.php +++ b/tests/Feature/Fakes/UserlandServiceProvider.php @@ -63,8 +63,7 @@ protected function registerWidgets() protected function registerMenuLinks() { - $routeName = 'userland.index'; - $name = 'Userland Tool'; - $this->addMenuWidgetRoute($routeName, $name); + $this->addMenuWidgetRoute('Userland Tool', 'userland.index'); + $this->addMenuWidgetUrl('External Link', 'http://external.com', 'External'); } } diff --git a/tests/Feature/UserlandControllerTest.php b/tests/Feature/UserlandControllerTest.php index 38f39adc..ceb14e60 100644 --- a/tests/Feature/UserlandControllerTest.php +++ b/tests/Feature/UserlandControllerTest.php @@ -49,6 +49,8 @@ public function test_menu_widget() $response->assertSee('