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:
Pavlico 2021-08-16 11:29:42 +02:00 committed by GitHub
parent 0a0f68c23c
commit 36d0555da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ abstract class HttpApi
protected function httpGet(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface protected function httpGet(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface
{ {
if (count($parameters) > 0) { if (count($parameters) > 0) {
$path .= '?'.urldecode(http_build_query($parameters)); $path .= '?'.http_build_query($parameters);
} }
try { try {

View File

@ -42,7 +42,7 @@ class EmailValidationV4Test extends TestCase
public function testInvalidEmail() public function testInvalidEmail()
{ {
$this->setRequestMethod('GET'); $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' $this->setHttpResponse(new Response(200, ['Content-Type' => 'application/json'], <<<'JSON'
{ {
"address": "email@example.com", "address": "email@example.com",
@ -77,7 +77,7 @@ JSON
public function testValidEmail() public function testValidEmail()
{ {
$this->setRequestMethod('GET'); $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' $this->setHttpResponse(new Response(200, ['Content-Type' => 'application/json'], <<<'JSON'
{ {
"address": "email3@example.com", "address": "email3@example.com",