bbbeea6cde
test(architecture): update Application and Domain tests for readonly checks
...
Refactor tests to utilize enumsIn function for better maintainability.
2026-08-14 11:33:29 +02:00
382f181ced
feat(api): add IncoSheets API endpoints and local environment variables
...
- Introduced 'Get Inco Sheet' and 'List Inco Sheets' endpoints.
- Updated local environment variables to include INCOSHEET_ID.
2026-08-14 11:33:18 +02:00
152ee2b5a2
feat(api): add IncoSheets feature with DDD clean architecture, tests & OpenAPI spec
...
- Use cases: FindAllIncoSheets & FindIncoSheet (filters, pagination, short projection)
- Presentation: controllers, FormRequests with scalar validation, DTOs (camelCase)
- Ports & Adapters: IncoSheetDirectory & EloquentIncoSheetDirectory
- Tests: Pest 4 unit, integration, OpenAPI spectator conformance, dynamic arch tests
- Docs: updated Bruno collection and OpenAPI spec
2026-08-14 11:33:05 +02:00
166257810d
chore(config): update phpunit configuration for better error handling
...
Added failOnRisky and failOnWarning attributes to enhance test reliability.
Updated directory inclusion to specify PHP suffix for clarity.
2026-08-14 10:43:09 +02:00
11291807a3
test(architecture): add tests for naming conventions and seeder integration
...
Ensures that all database seeders have corresponding integration tests
and verifies naming conventions across different layers of the application.
2026-08-14 10:36:26 +02:00
1d55dff5f4
feat(seeders): add IncoSheet and IncoCompo seeders
...
Implement seeders for IncoSheet and IncoCompo to populate the database with initial data.
2026-08-14 10:35:21 +02:00
3080c5dcfe
test(employees): add feature tests for employee retrieval and filtering
...
- Implement tests for employee show and index endpoints.
- Validate responses against OpenAPI specifications.
2026-08-14 09:59:24 +02:00
53b0dd9f1e
feat(employees): implement filtering and sorting for employee retrieval
...
Added Filter and Sorter classes to handle employee filtering and sorting criteria. Updated FindAllEmployees use case to utilize these new classes for improved employee data retrieval.
2026-08-14 09:30:21 +02:00
86e6de84ef
chore(dependencies): update Laravel and related packages
...
Updated Laravel framework to v13.25.0 and adjusted dependencies accordingly.
2026-08-13 17:02:10 +02:00
6ba04fe009
feat(exceptions): add NotFoundException for entity handling
...
Introduces a NotFoundException to standardize error handling for missing entities.
2026-08-13 16:24:08 +02:00
61bde4baaa
docs(README): update table of contents and link paths
...
docs(Exceptions): refine exception mapping details
docs(Tests): add comprehensive testing strategy documentation
2026-08-13 16:23:19 +02:00
58749030bf
feat(employees): add support for filtering by multiple site IDs
...
- Updated EmployeeFilter to accept an array of SiteId.
- Modified EloquentEmployeeDirectory to handle multiple site filters.
- Enhanced EmployeesIndexRequest to validate siteIds as an array.
- Added tests for siteIds filtering in EmployeesIndexTest and EmployeeOpenApiTest.
2026-08-13 15:30:53 +02:00
b64c1ef366
feat(employees): add filtering capabilities for employee retrieval
...
- Introduced EmployeeFilter value object for filtering criteria.
- Updated EmployeeDirectory and EloquentEmployeeDirectory to support filtering.
- Modified FindAllEmployees use case to accept filter input.
- Enhanced EmployeesIndexRequest to handle filter parameters.
- Added tests for filtering functionality in EmployeesIndexTest and EloquentEmployeeDirectoryTest.
2026-08-13 15:09:37 +02:00
b7f2de4f92
test(EloquentEmployeeDirectory): add integration tests for employee retrieval and date conversion
...
Includes tests for finding employees, handling null values, and date conversion.
2026-08-13 14:59:21 +02:00
2529118bcc
refactor(AppServiceProvider): simplify client IP retrieval logic
...
Removed unnecessary environment check for local client IP.
2026-08-13 14:58:02 +02:00
05ececd879
feat(RequestHelper): add pagination and URI conversion methods
...
Implement pagination logic and methods to convert request URLs to League URI instances.
2026-08-13 14:52:51 +02:00
8855f74bf0
chore(app): update timezone configuration to use environment variable
...
This change allows the timezone to be set via the APP_TIMEZONE
environment variable, enhancing configurability.
2026-08-13 14:52:21 +02:00
b2cb3d8e8e
chore(scripts): simplify dev command by removing npm build
...
Removed npm build command from the dev script to streamline the setup process.
2026-08-13 14:42:54 +02:00
92cf677d57
chore(scripts): update test command to enforce coverage minimum
...
This change ensures that the test command requires a minimum coverage of 85%.
2026-08-13 13:31:00 +02:00
6d77bc6332
test(DatesHelper): update date parsing logic and add fallback tests
...
Enhance date parsing in DatesHelper to correctly handle RFC3339 format.
Add tests for fallback scenarios with DateTimeImmutable.
2026-08-13 13:24:33 +02:00
e8d92e771a
test(UuidHelper): enhance UUID version checks and add fallback test
2026-08-13 13:24:21 +02:00
e833d1c75a
chore(composer): update test coverage command to output HTML report
...
This change modifies the test coverage command to generate an HTML report in the coverage-report directory.
2026-08-13 13:14:42 +02:00
dea8599b1e
test(UuidHelper): update UUID version checks and remove mocks
...
Refactor tests to directly use UUID instances instead of mocks.
2026-08-13 13:12:30 +02:00
8afc31c806
test(DatesHelper): update date regex and add instantiation test
...
- Fixed regex for inverted French date format.
- Added test to prevent direct instantiation of DatesHelper.
2026-08-13 13:11:55 +02:00
aaa39004bc
test(Pagination): add unit tests for Pagination value object
...
- Added tests for creating Pagination from explicit indexes.
- Updated tests for invalid constructor inputs and parameters.
2026-08-13 13:07:16 +02:00
289140c630
refactor(DatesHelper): make constructor private and update comment
...
Updated the constructor of DatesHelper to be private and modified the comment to clarify its purpose as a static class.
2026-08-13 13:07:03 +02:00
d15f30bcbf
test(UuidHelper): update unit tests for UUID version checks
...
Refactor test descriptions for clarity and consistency.
2026-08-13 13:06:01 +02:00
ab031e8d76
test(CodingStandards): refactor test file retrieval logic
...
Updated test file retrieval to use a dedicated function for improved clarity and maintainability.
2026-08-13 12:58:29 +02:00
39d394b7fb
test(Employee): add feature tests for employee endpoints
...
- Implement tests for retrieving employee details and listing employees.
- Validate responses against OpenAPI specifications.
2026-08-13 12:55:38 +02:00
3daeaccb4e
test(RootTest): add test for successful response on root URL
...
This test verifies that the root URL returns a 200 status code.
2026-08-13 12:49:33 +02:00
cc7a629193
test(UsecaseBuilder): add unit tests for UsecaseBuilder functionality
...
This commit introduces unit tests for the UsecaseBuilder and UsecaseExecutionBuilder, ensuring proper behavior when building and executing use cases.
2026-08-13 12:47:39 +02:00
ccba793b4c
test(EntityId): add unit tests for EntityId instantiation
...
Includes tests for valid UUID and handling of empty string.
2026-08-13 12:47:18 +02:00
52d0e6f0fd
test(ApiExceptionDispatcher): add integration tests for exception handling
...
Added integration tests for ApiExceptionDispatcher to ensure proper handling of exceptions
for various API request scenarios, including JSON acceptance and unversioned requests.
2026-08-13 12:34:44 +02:00
8e96abc88d
fix(ApiExceptionRenderer): update response for ValidationException
...
Changed the response status and title for ValidationException from 400 to 422 to align with HTTP standards.
2026-08-13 12:34:32 +02:00
b3f02510b5
docs: update README and add Exceptions documentation
...
Added a section for Exception Management in README and created a new document detailing exception handling and HTTP status codes.
2026-08-13 12:34:12 +02:00
b7c5c98128
fix(ApiExceptionRenderer): change title for ValidationException response
...
Update the title for the ValidationException response to accurately reflect the error type.
2026-08-13 12:26:56 +02:00
985fcedb04
test(WebExceptionRenderer): add tests for rendering exceptions
...
Add tests to verify the behavior of WebExceptionRenderer for NotFoundException and unhandled exceptions.
2026-08-13 12:18:22 +02:00
52d121085a
chore: exclude views directory from PHPUnit tests
...
This change ensures that the views directory is not included in the test coverage.
2026-08-13 12:18:07 +02:00
3ba74409ff
test(ValueObjects): add unit tests for BrandCode, EstablishmentCode, IncoCompoId, IncoId, ServiceId, and SiteId value objects
...
Add comprehensive unit tests to validate the behavior of various value objects.
2026-08-13 12:10:53 +02:00
742476bdcb
test(ArcadiaEmployeeId): add covers declaration for tests
2026-08-13 12:03:16 +02:00
90d7bfdf37
test(Employee): add unit tests for Employee entity
2026-08-13 12:03:09 +02:00
31b83970b5
test: remove ExampleTest.php as it is no longer needed
...
This test file was deleted to clean up the test suite.
2026-08-13 12:02:49 +02:00
41dbb04963
test(Architecture): ensure all Unit and Integration tests declare covers()
...
Added a test to verify that every Unit and Integration test file contains a covers() declaration.
2026-08-13 12:02:43 +02:00
f8b5722a78
test(ArcadiaEmployeeId): add unit tests for ArcadiaEmployeeId value object
2026-08-13 11:57:52 +02:00
0111ee2ac4
refactor(Employees): remove BaseEnum trait and clean up EmployeeSortColumn
...
This change simplifies the EmployeeSortColumn enum by removing the BaseEnum trait,
which is no longer needed.
2026-08-13 11:52:13 +02:00
198da8a11c
test(Pagination): add unit tests for Pagination value object
2026-08-13 11:50:16 +02:00
8c0d139ad3
docs(README): update table of contents and add testing section
...
docs(TEST): add testing strategy and organization document
2026-08-13 11:50:11 +02:00
84e59314a0
test(Architecture): add namespaces to architecture test files and create integration test suite
...
- Added namespaces to various architecture test files for consistency.
- Created a new integration test suite in phpunit.xml.
2026-08-13 11:25:08 +02:00
fed1916b24
test(UuidHelper): add unit tests for UUID version verification
2026-08-13 10:29:05 +02:00
eacfd828f0
test(DateHelper): add integration tests for date parsing and formatting
...
This commit introduces integration tests for the DatesHelper class,
ensuring correct functionality for date parsing, range verification,
and RFC3339 formatting.
2026-08-13 10:24:11 +02:00