/** * return bool */ public function testValidateResetPasswordToken() { $this->reInitModel(); $this->customer->expects($this->once())->method('getResetPasswordLinkExpirationPeriod')->willReturn(100000); $this->customerRegistry->expects($this->atLeastOnce())->method('retrieveSecureData')->willReturn($this->customerSecure); $this->assertTrue($this->accountManagement->validateResetPasswordLinkToken(22, 'newStringToken')); }
/** * {@inheritdoc} */ public function validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'validateResetPasswordLinkToken'); if (!$pluginInfo) { return parent::validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken); } else { return $this->___callPlugins('validateResetPasswordLinkToken', func_get_args(), $pluginInfo); } }