Skip to content

Commit

Permalink
Remove unused argument in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 25, 2024
1 parent 16863df commit 0ba37d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Security/LoginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LoginManagerTest extends TestCase
{
public function testLogInUserWithRequestStack()
{
$loginManager = $this->createLoginManager('main');
$loginManager = $this->createLoginManager();
$loginManager->logInUser('main', $this->mockUser());
}

Expand All @@ -40,11 +40,11 @@ public function testLogInUserWithRememberMeHandler()
->method('createRememberMeCookie')
->with($user);

$loginManager = $this->createLoginManager('main', $rememberMeHandler);
$loginManager = $this->createLoginManager($rememberMeHandler);
$loginManager->logInUser('main', $user, $response);
}

private function createLoginManager(string $firewallName, ?RememberMeHandlerInterface $rememberMeHandler = null): LoginManager
private function createLoginManager(?RememberMeHandlerInterface $rememberMeHandler = null): LoginManager
{
$tokenStorage = $this->getMockBuilder(TokenStorageInterface::class)->getMock();
$tokenStorage
Expand Down

0 comments on commit 0ba37d5

Please sign in to comment.