From d5207ef3b55951e0d46a9985587132e6d34a55d6 Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Thu, 6 Jul 2023 18:41:31 +0200 Subject: [PATCH] [TASK] Fix API url for organisation statistics --- tests/Unit/Api/OrganisationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Api/OrganisationTest.php b/tests/Unit/Api/OrganisationTest.php index 625aefc..295977d 100644 --- a/tests/Unit/Api/OrganisationTest.php +++ b/tests/Unit/Api/OrganisationTest.php @@ -48,7 +48,7 @@ class OrganisationTest extends TestCase $settings->getApiKey()->willReturn('none'); $client->send(Argument::that(function (Request $request) { - return (string)$request->getUri() === 'https://example.com/api/v1/organisation/10/statistic' + return (string)$request->getUri() === 'https://example.com/api/v1/organisation/10/statistics' && $request->getHeader('x-api-key') === ['none'] && $request->getHeader('Content-Type') === ['application/json'] && $request->getMethod() === 'GET';