Skip to content

Commit 6dddacb

Browse files
committed
add unit test
1 parent 0feaf3f commit 6dddacb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Security/Test/Unit/Model/Plugin/AccountManagementTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testBeforeInitiatePasswordReset($area, $passwordRequestEvent, $e
9292
]
9393
);
9494

95-
$this->scope->expects($this->once())
95+
$this->scope->expects($this->any())
9696
->method('getCurrentScope')
9797
->willReturn($area);
9898

@@ -119,6 +119,7 @@ public function beforeInitiatePasswordResetDataProvider()
119119
[Area::AREA_FRONTEND, PasswordResetRequestEvent::CUSTOMER_PASSWORD_RESET_REQUEST, 1],
120120
// This should never happen, but let's cover it with tests
121121
[Area::AREA_FRONTEND, PasswordResetRequestEvent::ADMIN_PASSWORD_RESET_REQUEST, 1],
122+
[Area::AREA_WEBAPI_REST, PasswordResetRequestEvent::CUSTOMER_PASSWORD_RESET_REQUEST, 1],
122123
];
123124
}
124125
}

0 commit comments

Comments
 (0)