laravel-files/tests
Fabian @ Blax Software 2ee680cba1 fix(tests): test against real shipped migrations; harden warehouse asset lookup
The suite silently exercised a drifted workbench schema (bigint id()/morphs())
instead of the shipped uuid('id')/uuidMorphs() schema, so every UUID-keyed test
errored with SQLite "datatype mismatch" (39/104 errors). Add a shared
tests/TestCase that loads the package's real database/migrations as the single
source of truth (drift-proof) and centralizes the per-test boilerplate; fix one
ordering test that violated the real filables_unique constraint.

WarehouseService::searchAssetPath now clears the realpath/stat cache and retries
once on a miss, so an asset written by another process (image command, queue
worker) is servable without a restart. Hits are unaffected.

Suite: 105 tests, 235 assertions, green.
2026-06-07 11:37:48 +02:00
..
Unit fix(tests): test against real shipped migrations; harden warehouse asset lookup 2026-06-07 11:37:48 +02:00
TestCase.php fix(tests): test against real shipped migrations; harden warehouse asset lookup 2026-06-07 11:37:48 +02:00