Do you wish to register an account?
Browse Source

Make sure re-authenticate gets arguments

develop
Timothy Warren 2 weeks ago
parent
commit
035e142c98
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/AnimeClient/API/Kitsu/Auth.php
  2. +1
    -1
      tests/AnimeClient/Helper/MenuHelperTest.php

+ 1
- 1
src/AnimeClient/API/Kitsu/Auth.php View File

@@ -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'], []);
}

/**


+ 1
- 1
tests/AnimeClient/Helper/MenuHelperTest.php View File

@@ -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();



Loading…
Cancel
Save