mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 08:26:06 +03:00
Moving back breaking changes (#773)
* Moving back breaking changes * Moving back tests * Cs-fix Co-authored-by: Pawel Wasiluk <pwasi@softserveinc.com>
This commit is contained in:
parent
0a0f68c23c
commit
36d0555da9
@ -118,7 +118,7 @@ abstract class HttpApi
|
||||
protected function httpGet(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface
|
||||
{
|
||||
if (count($parameters) > 0) {
|
||||
$path .= '?'.urldecode(http_build_query($parameters));
|
||||
$path .= '?'.http_build_query($parameters);
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -42,7 +42,7 @@ class EmailValidationV4Test extends TestCase
|
||||
public function testInvalidEmail()
|
||||
{
|
||||
$this->setRequestMethod('GET');
|
||||
$this->setRequestUri('/v4/address/validate?address=email@example.com&provider_lookup=1');
|
||||
$this->setRequestUri('/v4/address/validate?address=email%40example.com&provider_lookup=1');
|
||||
$this->setHttpResponse(new Response(200, ['Content-Type' => 'application/json'], <<<'JSON'
|
||||
{
|
||||
"address": "email@example.com",
|
||||
@ -77,7 +77,7 @@ JSON
|
||||
public function testValidEmail()
|
||||
{
|
||||
$this->setRequestMethod('GET');
|
||||
$this->setRequestUri('/v4/address/validate?address=email3@example.com&provider_lookup=0');
|
||||
$this->setRequestUri('/v4/address/validate?address=email3%40example.com&provider_lookup=0');
|
||||
$this->setHttpResponse(new Response(200, ['Content-Type' => 'application/json'], <<<'JSON'
|
||||
{
|
||||
"address": "email3@example.com",
|
||||
|
Loading…
Reference in New Issue
Block a user