Передаю через call() файл, как передать заголовки?
$file = new UploadedFile(public_path('tests\images\test.png'), 'test.png', null, 'image/png', null, true);
$filename = $this->call('POST', '/api/admin/upload', [], [], ['file' => $file], ['Accept' => 'application/json']);