Bläddra i källkod

fix unit tests and lint

Olivier Massot 5 månader sedan
förälder
incheckning
f2d8bbb438

+ 0 - 2
src/Service/ApiLegacy/ApiLegacyRequestService.php

@@ -6,11 +6,9 @@ namespace App\Service\ApiLegacy;
 
 use App\Entity\Access\Access;
 use App\Service\Rest\ApiRequestService;
-use HttpResponse;
 use JetBrains\PhpStorm\Pure;
 use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
 use Symfony\Bundle\SecurityBundle\Security;
-use Symfony\Component\HttpClient\Response\TraceableResponse;
 use Symfony\Component\HttpKernel\Exception\HttpException;
 use Symfony\Component\Security\Core\Authentication\Token\NullToken;
 use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;

+ 0 - 2
tests/Unit/Service/ApiLegacy/ApiLegacyRequestServiceTest.php

@@ -65,7 +65,6 @@ class ApiLegacyRequestServiceTest extends TestCase
             'authorization' => 'BEARER XYZ',
             'Accept' => '*/*',
             'Charset' => 'UTF-8',
-            'Accept-Encoding' => 'gzip, deflate, br',
             'Content-Type' => 'application/ld+json',
             'x-accessid' => '1',
             'internal-requests-token' => self::internalRequestsToken,
@@ -120,7 +119,6 @@ class ApiLegacyRequestServiceTest extends TestCase
             'authorization' => 'BEARER 123',
             'Accept' => '*/*',
             'Charset' => 'UTF-8',
-            'Accept-Encoding' => 'gzip, deflate, br',
             'Content-Type' => 'application/ld+json',
             'x-accessid' => '20',
             'x-switch-access' => '10',