/** * @return void */ public function testBeforeInitiatePasswordReset() { $email = '*****@*****.**'; $template = \Magento\Customer\Model\AccountManagement::EMAIL_RESET; $this->securityManager->expects($this->once())->method('performSecurityCheck')->with(\Magento\Security\Model\PasswordResetRequestEvent::CUSTOMER_PASSWORD_RESET_REQUEST, $email)->willReturnSelf(); $this->model->beforeInitiatePasswordReset($this->accountManagement, $email, $template); }