8000 [Security] Fix test · symfony/symfony@7bc31c6 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 7bc31c6

Browse files
committed
[Security] Fix test
1 parent 04cb83e commit 7bc31c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Security/Http/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)
0