1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 15:34:03 +00:00
Commit graph

48 commits

Author SHA1 Message Date
lukinovec
835b169d60 Update defaulting test 2023-04-18 08:53:33 +02:00
lukinovec
ca907e68be Improve tests 2023-04-17 18:00:03 +02:00
lukinovec
2309b83327 Improve test name 2023-04-17 17:05:03 +02:00
lukinovec
4c9cb7cf51 Merge the tenantCacheStores tests 2023-04-17 17:00:15 +02:00
lukinovec
9925e49112 Assert that cache is null from the beginning 2023-04-17 15:11:30 +02:00
lukinovec
90684a7d92 Add re-initialization cache assertion 2023-04-17 15:10:06 +02:00
lukinovec
bd41ae4fe5 Delete TTL from cache put calls 2023-04-17 15:06:22 +02:00
lukinovec
d84878bd45 Refactor assertion 2023-04-17 14:51:52 +02:00
lukinovec
859b2c534a Add assertion 2023-04-17 14:49:23 +02:00
lukinovec
52d9643535 Update cache prefixing and tests 2023-04-17 14:34:54 +02:00
lukinovec
651302943f Correct $addTags reset in a test 2023-04-13 13:10:41 +02:00
lukinovec
740d4e78d8 Update prefix generator logic + tests 2023-04-13 12:46:33 +02:00
lukinovec
8ac4d87e94 Use a single original prefix 2023-04-13 07:47:18 +02:00
lukinovec
35b0dea270 Use $this->app instead of app() 2023-04-12 09:40:00 +02:00
lukinovec
39e62c7dcf Make original prefixes customizable 2023-04-12 08:23:31 +02:00
lukinovec
66669934f9 Reset static properties in afterEach 2023-03-31 14:11:45 +02:00
lukinovec
7bbd5350c7 Update tests 2023-03-31 09:20:10 +02:00
lukinovec
7b91e3fdec Test cache prefixing customization 2023-03-14 17:24:57 +01:00
lukinovec
9e8af40715 Test that non-default stores get prefixed too 2023-02-21 18:48:57 +01:00
lukinovec
c3e3a33ed0 Fix test 2023-02-01 11:51:28 +01:00
lukinovec
8deeef25be Improve tests 2023-01-06 08:34:56 +01:00
lukinovec
caa0c87153 Improve comment 2023-01-06 07:22:07 +01:00
lukinovec
1104aba4ef Improve specific cache store in a service test 2023-01-06 07:20:37 +01:00
lukinovec
52db2a0c06 Remove group('prefix') 2023-01-05 16:49:49 +01:00
lukinovec
507df55b4c Update test name 2023-01-05 16:45:25 +01:00
lukinovec
5ea5299ed1 Make CacheService a singleton in a test 2023-01-05 16:37:43 +01:00
lukinovec
b38aee0a6a Remove unused import, change word 2023-01-05 16:28:33 +01:00
lukinovec
7f10b9af41 Make 'redis' the only tenant cache store in beforeEach, test that tenantCacheStores works 2023-01-05 16:24:37 +01:00
lukinovec
42381d00e2 Remove redundant CacheManager extend() call 2023-01-05 16:14:20 +01:00
lukinovec
ffefe1b45c Test that the prefix stays the same 2023-01-05 13:05:39 +01:00
lukinovec
4b0df42f8a Add and test nonTenantCacheDrivers 2023-01-05 12:47:03 +01:00
lukinovec
a59d5a1069 Add test 2023-01-04 15:08:09 +01:00
lukinovec
87efdd2954 Toggle cache tags 2022-12-13 05:25:57 +01:00
lukinovec
9ec0b6dae3 Make Tenancy override CacheManager 2022-12-12 17:05:53 +01:00
lukinovec
825a565fa2 Update prefix bootstrapper and test (setStore() in CacheManager and Repository needed) 2022-12-08 16:24:54 +01:00
lukinovec
4c33df1aa5 Rename CacheAction to CacheService 2022-12-07 14:48:52 +01:00
Abrar Ahmad
19255fd98f use Repository in service class DI 2022-12-07 18:24:55 +05:00
Abrar Ahmad
2f91309990 introduce second tenant in test 2022-12-01 14:59:13 +05:00
Abrar Ahmad
6c955acd13 CacheService class as singleton 2022-12-01 14:58:13 +05:00
Abrar Ahmad
222686ec1d CacheManager dependency injection test 2022-12-01 13:53:45 +05:00
Abrar Ahmad
70ee83b3b7 fix test 2022-11-30 13:27:15 +05:00
Abrar Ahmad
3407faf811 fix prefix test according to prefix changes 2022-11-30 13:25:39 +05:00
Abrar Ahmad
2901d0190c remove unused line 2022-11-29 18:11:10 +05:00
Abrar Ahmad
b920a2905e assert tenants' data is accessible using the prefix from the central context 2022-11-29 17:13:04 +05:00
Abrar Ahmad
eef58bd93d test names grammar 2022-11-28 12:50:14 +05:00
Abrar Ahmad
3cff2e3ba9 Update PrefixCacheBootstrapperTest.php 2022-11-24 12:05:19 +05:00
Abrar Ahmad
2c0a8f4ef9 Update PrefixCacheBootstrapperTest.php 2022-11-23 12:59:51 +05:00
Abrar Ahmad
c4f9324aa8 Create PrefixCacheBootstrapperTest.php 2022-11-22 13:54:01 +05:00