Commit graph

9 commits

Author SHA1 Message Date
Jérémy Munsch
08c9028f91
test: update tests to use Assert for type checking
- Refactored tests to utilize Webmozart Assert for type assertions.
- Improved clarity and consistency in test expectations across multiple test files.
- Ensured that all relevant tests now check for expected types and values.
2026-11-16 16:26:51 +01:00
Jérémy Munsch
c2490e0339
test(phpstan): remove all 55 redundant RefreshDatabase uses() 2026-11-16 15:45:21 +01:00
Jérémy Munsch
1f642b185e
test(requests): overhaul BO Tags/Slides/Ranges/Products request tests and failure responses 2026-11-16 15:19:01 +01:00
Jérémy Munsch
5b88fb098a
test(tests): add PSR-4 namespaces to Architecture and Feature test files 2026-11-16 14:26:35 +01:00
Jérémy Munsch
4bbea5d285
fix(bo): check proper model policy in ranges and pickup exceptions index views 2026-11-16 00:53:36 +01:00
Jérémy Munsch
13aec6bad8
fix(bo): authorize update in ChangesModelOrder actions 2026-11-16 00:53:11 +01:00
Jérémy Munsch
3af75ac974
feat(uploads): enforce MIME/extension validation and display upload rules on BO/FO forms 2026-11-15 16:44:59 +01:00
Jérémy Munsch
42bdae01cc
feat: implement pagination using Pagination value object
- Updated DataTableService to accept a Pagination object for pagination parameters.
- Refactored paginateQuery method to utilize pageSize and pageNumber from Pagination.

refactor: replace ActionExecutor with Executor in controller traits

- Updated ChangesModelOrder, TogglesModelStar, and TogglesModelStatus traits to use Executor interface instead of ActionExecutor.

feat: add PictureMetadata and Slug value objects

- Introduced PictureMetadata for managing image metadata with validation.
- Added Slug value object for slug generation and validation.

feat: update breadcrumbs to support RangeDto

- Modified breadcrumbs-bo.php to accept RangeDto in the edit route.

test: add tests for RangesController

- Added tests for accessing, creating, updating, and deleting ranges.
- Included tests for toggling range status.

test: add integration tests for range actions

- Created tests for CreateRange, DeleteRange, and UpdateRange actions.
- Validated input handling and database interactions.

test: add unit tests for range input classes

- Implemented tests for CreateRangeInput and UpdateRangeInput to validate input constraints.

test: add unit tests for value objects

- Added tests for PictureMetadata and Slug to ensure proper validation and instantiation.

test: add unit tests for RangeDto

- Created tests to verify RangeDto mapping from Range model.

test: add unit tests for RangePolicy

- Implemented tests for RangePolicy to validate permissions based on user roles.
2026-10-27 09:58:34 +01:00
Jérémy Munsch
58af50b5c5
refactor: massive bump refactor 2026-10-27 09:58:12 +01:00