1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:04:02 +00:00

Add assertions + comment

This commit is contained in:
lukinovec 2023-04-18 14:20:21 +02:00
parent c0e2926905
commit f7c8f226c3

View file

@ -339,6 +339,7 @@ test('cache store prefix generation can be customized', function() {
// Expect the 'redis' store to use the prefix generated by the custom generator
expect($customPrefixGenerator($tenant) . ':')
->toBe(cache()->getPrefix())
->toBe(cache()->store('redis2')->getPrefix()) // Non-default cache stores are prefixed too (when they're in $tenantCacheStores)
->toBe(app('cache')->getPrefix())
->toBe(app('cache.store')->getPrefix());
@ -352,6 +353,7 @@ test('cache store prefix generation can be customized', function() {
expect($customPrefixGenerator($tenant) . ':')
->toBe(cache()->getPrefix())
->toBe(cache()->store('redis')->getPrefix())
->toBe(app('cache')->getPrefix())
->toBe(app('cache.store')->getPrefix());