From b080906862a7502a226327935989b456acd2002b Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 26 Apr 2024 13:35:27 +0200 Subject: [PATCH] Remove calls to `onConsecutiveCalls()` --- Tests/Hasher/UserPasswordHasherTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Hasher/UserPasswordHasherTest.php b/Tests/Hasher/UserPasswordHasherTest.php index 32805b1..c8f057c 100644 --- a/Tests/Hasher/UserPasswordHasherTest.php +++ b/Tests/Hasher/UserPasswordHasherTest.php @@ -154,7 +154,7 @@ public function testNeedsRehash() $mockPasswordHasherFactory->expects($this->any()) ->method('getPasswordHasher') ->with($user) - ->will($this->onConsecutiveCalls($hasher, $hasher, new NativePasswordHasher(5, 20000, 5), $hasher)); + ->willReturn($hasher, $hasher, new NativePasswordHasher(5, 20000, 5), $hasher); $passwordHasher = new UserPasswordHasher($mockPasswordHasherFactory);