From 054f152249d51ad66d1c2366d6f9b1326e5bd4e7 Mon Sep 17 00:00:00 2001 From: Erik Lindegren Date: Mon, 24 Sep 2018 10:25:18 +0200 Subject: [PATCH 1/3] Place widgets in aside with header --- src/PersonalRecentVisitsWidget.php | 4 ++-- src/TeamRecentVisitsWidget.php | 4 ++-- tests/Feature/UserlandControllerTest.php | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/PersonalRecentVisitsWidget.php b/src/PersonalRecentVisitsWidget.php index 2724dca..6f604d2 100644 --- a/src/PersonalRecentVisitsWidget.php +++ b/src/PersonalRecentVisitsWidget.php @@ -17,9 +17,9 @@ public function __construct(RecentVisitsRepository $repository) public function toHtml() { - return ''; } public function isAuthorized(Authorizable $user = null): bool diff --git a/src/TeamRecentVisitsWidget.php b/src/TeamRecentVisitsWidget.php index 89258a4..ce57b35 100644 --- a/src/TeamRecentVisitsWidget.php +++ b/src/TeamRecentVisitsWidget.php @@ -17,9 +17,9 @@ public function __construct(RecentVisitsRepository $repository) public function toHtml() { - return ''; } public function isAuthorized(Authorizable $user = null): bool diff --git a/tests/Feature/UserlandControllerTest.php b/tests/Feature/UserlandControllerTest.php index 0ad4951..b18ee7b 100644 --- a/tests/Feature/UserlandControllerTest.php +++ b/tests/Feature/UserlandControllerTest.php @@ -63,6 +63,9 @@ public function test_recent_visits_widgets() $response->assertOk(); // Check personal links + $response->assertSee('