Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 461a214

Browse files
committed
[Security] Fix PasswordMigratingListenerTest
1 parent b6966d9 commit 461a214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Security/Http/Tests/EventListener/PasswordMigratingListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testUserWithoutPassword()
114114
{
115115
$this->user = new User('test', null);
116116

117-
$this->encoderFactory->expects($this->never())->method('getEncoder');
117+
$this->hasherFactory->expects($this->never())->method('getPasswordHasher');
118118

119119
$event = $this->createEvent(new SelfValidatingPassport(new UserBadge('test', function () { return $this->user; }), [new PasswordUpgradeBadge('pa$$word')]));
120120
$this->listener->onLoginSuccess($event);
@@ -134,6 +134,7 @@ private function createEvent(PassportInterface $passport)
134134
abstract class TestMigratingUserProvider implements UserProviderInterface, PasswordUpgraderInterface
135135
{
136136
abstract public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void;
137+
137138
abstract public function loadUserByIdentifier(string $identifier): UserInterface;
138139
}
139140

0 commit comments

Comments
 (0)