Make sure re-authenticate gets arguments
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good Détails

Cette révision appartient à :
Timothy Warren 2020-05-18 13:32:02 -04:00
Parent ebe8626ba7
révision 035e142c98
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

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

Voir le fichier

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