From 035e142c98a6ad8f97543da3050960a40f6e1d72 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Mon, 18 May 2020 13:32:02 -0400 Subject: [PATCH] Make sure re-authenticate gets arguments --- src/AnimeClient/API/Kitsu/Auth.php | 2 +- tests/AnimeClient/Helper/MenuHelperTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnimeClient/API/Kitsu/Auth.php b/src/AnimeClient/API/Kitsu/Auth.php index 1ec5c26f..ac17d05a 100644 --- a/src/AnimeClient/API/Kitsu/Auth.php +++ b/src/AnimeClient/API/Kitsu/Auth.php @@ -68,7 +68,7 @@ final class Auth { ->getSegment(SESSION_SEGMENT); $this->model = $container->get('kitsu-model'); - Event::on('::unauthorized::', [$this, 'reAuthenticate']); + Event::on('::unauthorized::', [$this, 'reAuthenticate'], []); } /** diff --git a/tests/AnimeClient/Helper/MenuHelperTest.php b/tests/AnimeClient/Helper/MenuHelperTest.php index 1e863b1d..537074ff 100644 --- a/tests/AnimeClient/Helper/MenuHelperTest.php +++ b/tests/AnimeClient/Helper/MenuHelperTest.php @@ -55,7 +55,7 @@ class MenuHelperTest extends AnimeClientTestCase { $expected['no selection'] = $this->helper->ul()->__toString(); // selected - $link = $this->helper->a($this->urlGenerator->url('/foobar'), 'Index'); + $link = $this->helper->a($this->urlGenerator->url('/foobar'), 'Index', ['aria-current' => 'location']); $this->helper->ul()->rawItem($link, ['class' => 'selected']); $expected['selected'] = $this->helper->ul()->__toString();