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:
parent
c0e2926905
commit
f7c8f226c3
1 changed files with 2 additions and 0 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue