Skip to content

Commit 6fb9424

Browse files
committed
added missing expects to mocks
1 parent 36688c3 commit 6fb9424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/UnitTests/ResetPasswordHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function testHasUserThrottlingReturnsFalseWithNoLastRequestDate(): void
9393
;
9494

9595
$this->mockRepo
96+
->expects($this->once())
9697
->method('createResetPasswordRequest')
9798
->willReturn(new ResetPasswordTestFixtureRequest())
9899
;
@@ -126,6 +127,7 @@ public function testHasUserThrottlingReturnsFalseIfNotBeforeThrottleTime(): void
126127
;
127128

128129
$this->mockRepo
130+
->expects($this->once())
129131
->method('createResetPasswordRequest')
130132
->willReturn(new ResetPasswordTestFixtureRequest())
131133
;
@@ -179,6 +181,7 @@ public function testRemoveResetRequestRetrievesTokenFromRepository(): void
179181
public function testRemoveResetRequestCallsRepositoryToRemoveResetRequestObject(): void
180182
{
181183
$this->mockRepo
184+
->expects($this->once())
182185
->method('findResetPasswordRequest')
183186
->willReturn($this->mockResetRequest)
184187
;

0 commit comments

Comments
 (0)