[1.x] Fix RedisTest for Laravel 13 Redis prefix change and updated serialization (#500)
* Fix RedisTest for Laravel 13 Redis prefix and updated serialization format
Replace hardcoded `laravel_database_` prefix with dynamic `Config::get('database.redis.options.prefix')` lookup across all test assertions and redis-cli commands. This makes the tests resilient to the Laravel 13 change from underscores to hyphens in the default Redis prefix.
For the XADD serialization assertion, replace exact byte-string matching with structural validation that deserializes the captured data and asserts on the Entry properties. This makes the test resilient to future serialization format changes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix XINFO STREAM parsing to use field names instead of hardcoded line indices
The "storing" test parsed XINFO STREAM output by hardcoded line indices
(->only([17, 21])) which breaks across Redis versions that have different
numbers of fields. Now parses by searching for "first-entry" and
"last-entry" field names, which is version-independent.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> J
Josh Salway committed
6409f244366cac8c0641458f04fe57ce2160ed98
Parent: a0b8e2a
Committed by GitHub <noreply@github.com>
on 3/24/2026, 6:30:37 PM