Commit graph

18 commits

Author SHA1 Message Date
117f70510f
feat(StorageServiceConfig): support scoped driver with boot-time underlying driver resolution 2026-11-04 17:25:33 +01:00
15cc0cd1ec
style(tests): fix spacing in docblock for allowedExtensions
Improves readability of the code by standardizing spacing in the docblock.
2026-11-04 09:31:30 +01:00
8dc7434133
feat(StorageServiceConfig): add prefix handling and validation
- Introduced prefix property in StorageServiceConfig.
- Implemented prefix validation and trimming logic.
- Updated path generators to utilize the configured prefix.
- Added tests for prefix validation and retrieval.
2026-11-04 08:11:57 +01:00
934c6aa4b1
feat(StorageFilePath): implement JsonSerializable interface 2026-11-04 07:25:07 +01:00
2a4da11008
test(StorageServiceImpl): add unit tests for file operations
This commit introduces unit tests for the StorageServiceImpl class,
covering file validation, existence checks, retrieval, storage,
and removal operations.
2026-11-03 17:35:56 +01:00
e2e77ee388
test(StorageGatewayImpl): add unit tests for file storage operations
Includes tests for storing, retrieving, checking existence, and deleting files.
2026-11-03 17:35:51 +01:00
fbce63220b
test(MimeTypeCheckerImpl): ignore type argument for PHPStan 2026-11-03 17:35:46 +01:00
f6e246d4fb
test(FileSanitizerImpl): add PHPDoc for allowedExtensions parameter 2026-11-03 17:30:32 +01:00
125d968a6c
test(MimeTypeCheckerImpl): ignore type argument for PHPStan 2026-11-03 17:29:01 +01:00
dfc74c6d41
test(Utils): add unit tests for disk existence and extension validation
This commit introduces unit tests for the Utils class, verifying
the behavior of disk existence checks and allowed file extensions.
2026-11-03 17:28:47 +01:00
bfac833847
test(FileSanitizerImpl): add tests for file sanitization errors
- Add tests to verify behavior when files are unreadable.
- Ensure proper exception handling for unsupported file types.
2026-11-03 17:28:40 +01:00
1483adabe2
test(StorageServiceConfig): add unit tests for configuration validation
Added comprehensive unit tests for StorageServiceConfig to validate instantiation, disk eligibility, and allowed extensions.
2026-11-03 17:14:58 +01:00
c29629a9f9
test(FileStream): skip test for chmod 0000 in superuser environments
Bypassing read restrictions in superuser/root environments to ensure test reliability.
2026-11-03 17:13:37 +01:00
1fcb763984
chore(tests): add .gitkeep files for Feature and Integration directories
This ensures the directories are tracked in version control.
2026-11-03 17:04:34 +01:00
dcfec3de04
test(DateHashPathGenerator): add unit tests for path generation
Added comprehensive unit tests for DateHashPathGenerator to validate path generation
with and without directories, ensuring unique paths for identical files and proper
slugging of filenames.
2026-11-03 17:04:29 +01:00
4a41f429ac
fix(FileStream): handle resource creation failure in constructor
Ensure that an exception is thrown if the temporary stream cannot be created.
2026-11-03 16:54:25 +01:00
5075caa54b
test: add unit tests for DiskName, FileStream, and SanitizedFile
- Implement tests for DiskName instantiation and validation.
- Add tests for FileStream instantiation and methods.
- Create tests for SanitizedFile instantiation and validation.
- Introduce TestDiskBackedEnum and TestDiskUnitEnum for testing purposes.
2026-11-03 16:32:09 +01:00
fc267c330c
feat(tests): add initial test structure and example tests
- Introduced Pest testing framework with basic test cases.
- Created TestCase and ExampleTest for unit testing.
- Updated phpunit.xml for improved test configuration.
2026-11-03 16:20:14 +01:00