Http::response('', 200), 'https://nami.dpsg.de/ica/rest/nami/auth/manual/sessionStartup' => Http::response($this->successJson, 200) ]; } public function fakeJson(string $file, array $data = []): string { ob_start(); include(__DIR__.'/json/'.$file); return ob_get_clean(); } public function fakeGenders() { return [ 'https://nami.dpsg.de/ica/rest/baseadmin/geschlecht' => Http::response($this->fakeJson('genders.json'), 200) ]; } }