Fix URI for the Email Validation process

This commit is contained in:
David Garcia 2019-08-09 23:04:04 +01:00
parent ae9a549e7f
commit 3586bd0398
No known key found for this signature in database
GPG Key ID: 5B833C2A14BD9A97
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class EmailValidation extends HttpApi
'mailbox_verification' => $mailboxVerification, 'mailbox_verification' => $mailboxVerification,
]; ];
$response = $this->httpGet('/address/private/validate', $params); $response = $this->httpGet('/v4/address/validate', $params);
return $this->hydrateResponse($response, ValidateResponse::class); return $this->hydrateResponse($response, ValidateResponse::class);
} }

View File

@ -35,7 +35,7 @@ class EmailValidationTest extends TestCase
$api->expects($this->once()) $api->expects($this->once())
->method('httpGet') ->method('httpGet')
->with('/address/private/validate', $params) ->with('/v4/address/validate', $params)
->willReturn(new Response()); ->willReturn(new Response());
$api->validate($params['address'], $params['mailbox_verification']); $api->validate($params['address'], $params['mailbox_verification']);