/** * @magentoDataFixture Magento/Customer/_files/customer.php */ public function testResetPasswordTokenInvalidUserId() { $resetToken = 'lsdj579slkj5987slkj595lkj'; $password = '******'; $this->setResetPasswordData($resetToken, 'Y-m-d'); try { $this->_customerAccountService->resetPassword(0, $resetToken, $password); $this->fail('Expected exception not thrown.'); } catch (InputException $ie) { $this->assertEquals('Invalid value of "0" provided for the customerId field.', $ie->getMessage()); $this->assertEmpty($ie->getErrors()); } }