Skip to content

Commit 47708bf

Browse files
committed
test: added more controller tests for the public API (#3830)
1 parent 040fe41 commit 47708bf

21 files changed

+2013
-97
lines changed

phpmyfaq/src/phpMyFAQ/Controller/Api/AttachmentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct()
7878
)]
7979
public function list(Request $request): JsonResponse
8080
{
81-
$recordId = (int) Filter::filterVar($request->attributes->get(key: 'recordId'), FILTER_VALIDATE_INT);
81+
$recordId = (int) Filter::filterVar($request->attributes->get(key: 'faqId'), FILTER_VALIDATE_INT);
8282
$result = [];
8383

8484
try {

0 commit comments

Comments
 (0)