Added tests to test the KICad API endpoints

This commit is contained in:
Jan Böhmer 2023-12-03 00:43:34 +01:00
parent d976865e7a
commit 9994dbd9db
3 changed files with 323 additions and 2 deletions

View file

@ -33,7 +33,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
#[Route('/kicad-api/v1')]
class KiCADAPIController extends AbstractController
class KiCadApiController extends AbstractController
{
public function __construct(
private readonly KiCADHelper $kiCADHelper,
@ -54,7 +54,7 @@ class KiCADAPIController extends AbstractController
}
#[Route('/categories.json', name: 'kicad_api_categories')]
public function categories(NodesListBuilder $nodesListBuilder): Response
public function categories(): Response
{
$this->denyAccessUnlessGranted('@categories.read');