Added
-
Integration Tests:
Added full coverage forDecryptedTextDisplayincluding cases for:- showing decrypted value when input provided
- warning message when input is missing
- dash display when record does not implement
HasLockbox - error when user does not implement
HasLockboxKeys - dash display when decrypted value is empty or missing
-
Model Factories:
Introduced factories forLockbox,LockboxUser, and stub user models to simplify test setup.
Added a reusable trait to declarenewFactoryfor all test user model variations. -
Traits:
AddedEnsuresModelContexttrait to DRY up and standardize model context checks used acrossInteractsWithLockbox
andInteractsWithLockboxKeys.
Fixed
-
Config:
filament-lockbox.user_modelcan now be overridden inconfig/filament-lockbox.phpinstead of being hardcoded.
This allows custom user model configuration in consuming applications. -
Static Analysis:
- Corrected PHPStan return type for
Lockbox::user()to eliminate covariance error. - Suppressed false positives for unused internal traits in PHPStan config.
- Corrected PHPStan return type for
-
Tests:
Stabilized integration tests by using factories instead of manually persisted models, ensuring migrations and model
attributes (e.g.lockbox_provider) align with the schema.