Skip to content

Commit

Permalink
Update src/Symfony/Component/Security/Http/Tests/EventListener/Sessio…
Browse files Browse the repository at this point in the history
…nLogoutListenerTest.php

Co-authored-by: Alexander M. Turek <me@derrabus.de>
  • Loading branch information
mousezheng and derrabus committed Jul 27, 2021
1 parent 6595e9a commit ed58e1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function testOnLogoutIfHasNoSession()
{

$request = $this->createMock(Request::class);
$request->expects($this->once())->method('hasSession')->willReturn(false);
$request->method('hasSession')->willReturn(false);
$request->expects($this->never())->method('getSession');

$sessionLogoutListener = new SessionLogoutListener();
$sessionLogoutListener->onLogout(new LogoutEvent($request, null));
Expand Down

0 comments on commit ed58e1b

Please sign in to comment.