[TASK] Fix API url for organisation statistics

This commit is contained in:
Markus Klein 2023-07-06 18:41:31 +02:00
parent a7e0532d06
commit d5207ef3b5

View file

@ -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';