/** * @magentoDataFixture Magento/Customer/_files/customer.php * */ public function testValidateResetPasswordLinkTokenNull() { try { $this->_customerAccountService->validateResetPasswordLinkToken(1, null); $this->fail('Expected exception not thrown.'); } catch (InputException $ie) { $this->assertEquals(InputException::REQUIRED_FIELD, $ie->getRawMessage()); $this->assertEquals('resetPasswordLinkToken is a required field.', $ie->getMessage()); $this->assertEquals('resetPasswordLinkToken is a required field.', $ie->getLogMessage()); $this->assertEmpty($ie->getErrors()); } }