Skip to content

Commit b080906

Browse files
Remove calls to onConsecutiveCalls()
1 parent b4516ba commit b080906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Hasher/UserPasswordHasherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testNeedsRehash()
154154
$mockPasswordHasherFactory->expects($this->any())
155155
->method('getPasswordHasher')
156156
->with($user)
157-
->will($this->onConsecutiveCalls($hasher, $hasher, new NativePasswordHasher(5, 20000, 5), $hasher));
157+
->willReturn($hasher, $hasher, new NativePasswordHasher(5, 20000, 5), $hasher);
158158

159159
$passwordHasher = new UserPasswordHasher($mockPasswordHasherFactory);
160160

0 commit comments

Comments
 (0)