From ab2ae5c5c8f6d090104ae9a9ed9dd55b2cefbb73 Mon Sep 17 00:00:00 2001 From: Jonathan Lelievre Date: Wed, 3 Apr 2024 20:21:59 +0200 Subject: [PATCH] Update error message on invalid authorization header --- tests/Integration/ApiPlatform/ApiTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Integration/ApiPlatform/ApiTestCase.php b/tests/Integration/ApiPlatform/ApiTestCase.php index 1f611e7..c2d8ca5 100644 --- a/tests/Integration/ApiPlatform/ApiTestCase.php +++ b/tests/Integration/ApiPlatform/ApiTestCase.php @@ -77,7 +77,7 @@ public function testProtectedEndpoints(string $method, string $uri, string $cont $content = $response->getContent(false); $this->assertNotEmpty($content); - $this->assertEquals('No Authorization header provided', $content); + $this->assertEquals('"No Authorization header provided"', $content); // Test same endpoint with a token but without scopes $emptyBearerToken = $this->getBearerToken();