Skip to content

Commit e7947da

Browse files
committed
[Security] Fix test
1 parent 4687677 commit e7947da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/EventListener/PasswordMigratingListenerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testUpgradeWithoutUpgrader()
110110

111111
private function createPasswordUpgrader()
112112
{
113-
return $this->createMock(PasswordUpgraderInterface::class);
113+
return $this->createMock(MigratingUserProvider::class);
114114
}
115115

116116
private function createEvent(PassportInterface $passport)
@@ -121,4 +121,7 @@ private function createEvent(PassportInterface $passport)
121121

122122
abstract class MigratingUserProvider implements UserProviderInterface, PasswordUpgraderInterface
123123
{
124+
public function upgradePassword(UserInterface $user, string $newEncodedPassword): void
125+
{
126+
}
124127
}

0 commit comments

Comments
 (0)