corentin_wakdo/tests/Integration
Imugiii 0fc96c8e67
All checks were successful
CI / secret-scan (push) Successful in 8s
CI / php-lint (push) Successful in 20s
CI / static-tests (push) Successful in 42s
CI / js-tests (push) Successful in 24s
CI / secret-scan (pull_request) Successful in 8s
CI / php-lint (pull_request) Successful in 18s
CI / static-tests (pull_request) Successful in 46s
CI / js-tests (pull_request) Successful in 23s
feat(api): P4 chunk 2 - read API catalogue borne (categories/produits/menus)
5 endpoints publics anonymes en lecture seule (docs/api/conventions.md 5.2) :
GET /api/categories, /api/products, /api/products/{id}, /api/menus, /api/menus/{id}.

- CatalogueController : projection explicite (types entiers garantis cote JSON),
  enveloppe {data,total} / {data:null,error:{code,message}}, 404 NOT_FOUND.
- Repos lecture : CategoryRepository::activeForCatalogue ; Product/Menu
  ::availableForCatalogue + findForCatalogue. Filtres is_available=1 ET categorie
  active : la borne ne voit que le commandable (liste ET detail). Menu detail
  porte ses slots (slotsWithOptions, option_product_ids).
- Payload canonique snake_case ; vat_rate exclu (fiscal serveur), is_available
  retire (toujours dispo), is_required du slot en booleen, sans timestamp.
- Dispo calculee RG-T21 differee au seed des recettes (filtre actuel = flag).
- Tests : 11 unit (FakeCatalogueDatabase, read-only) + 2 integration (filtres +
  slots vs vraie MariaDB).
2026-06-18 14:07:34 +00:00
..
AuthorizerDbTest.php feat: RBAC P2 (autorisation par permission + garde de session + /api/me) (#12) 2026-06-15 20:45:19 +02:00
AuthServiceDbTest.php feat: authentification back-office P2 (login/logout/reset, throttle, audit) (#11) 2026-06-15 20:18:59 +02:00
CatalogueReadDbTest.php feat(api): P4 chunk 2 - read API catalogue borne (categories/produits/menus) 2026-06-18 14:07:34 +00:00
CategoryRepositoryDbTest.php feat: CRUD categories P3 (rendu serveur, garde + CSRF + validation) (#15) 2026-06-15 21:45:31 +02:00
IngredientRepositoryDbTest.php feat(admin): stock ingredients - CRUD, restock, inventaire PIN, mouvements (P3, mlt 8.8 + domaine 9) (#34) 2026-06-17 11:11:31 +02:00
MenuRepositoryDbTest.php feat(admin): CRUD menus composes avec slots (P3, mlt 8.4-8.6) (#32) 2026-06-16 15:39:09 +02:00
PinThrottleDbTest.php feat(admin): throttle du PIN d action sensible par acteur (RG-T22) (#18) 2026-06-16 00:06:33 +02:00
PinVerifierDbTest.php feat: PIN d action sensible P2 (PinVerifier RG-T13) (#13) 2026-06-15 21:00:11 +02:00
ProductIngredientDbTest.php feat(admin): recettes produit - composition product_ingredient + dispo calculee RG-T21 (P3, ferme #27) (#35) 2026-06-17 11:29:07 +02:00
ProductRepositoryDbTest.php feat(admin): CRUD produits avec PIN conditionnel et audit (#17) 2026-06-15 22:35:50 +02:00
RoleRepositoryDbTest.php feat(admin): RBAC - matrice roles/permissions + roles custom (PIN+audit diff) (P3) (#39) 2026-06-17 14:25:42 +02:00
StatsRepositoryDbTest.php feat(admin): tableau de bord statistiques (catalogue + sante stock RG-T21) (P3) (#37) 2026-06-17 12:37:58 +02:00
UserRepositoryDbTest.php feat(admin): gestion des comptes back-office (CRUD users + RGPD, PIN+audit) (P3) (#38) 2026-06-17 13:49:02 +02:00