Fixed: header test for deleting membership

This commit is contained in:
Philipp Lang 2022-11-11 16:00:16 +01:00
parent d6da54e50f
commit facd04cfd7
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class MembershipFake extends Fake
{
$url = "https://nami.dpsg.de/ica/rest/nami/zugeordnete-taetigkeiten/filtered-for-navigation/gruppierung-mitglied/mitglied/{$memberId}/{$membershipId}";
Http::assertSent(function ($request) use ($url) {
return $request->hasHeader('content-type', 'application/json') && $request->hasHeader('content-type', 'application/json') && $request->url() === $url && 'DELETE' === $request->method();
return $request->hasHeader('content-type', 'application/json') && $request->hasHeader('accept', 'application/json') && $request->url() === $url && 'DELETE' === $request->method();
});
}