mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
Fix URI for the Email Validation process
This commit is contained in:
parent
ae9a549e7f
commit
3586bd0398
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user