1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:34:04 +00:00
tenancy/tests
Samuel Štancl eecf6f21c8
Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43)
* Run cache tests on all supported drivers

* update ci healthcheck for memcached

* remove memcached healthcheck

* fix typos in test comments, expand internal.md [ci skip]

* add empty line [ci skip]

* switch to using $store->setPrefix()

* add dynamodb

* refactor try-finally to try-catch

* remove unnecessary clearResolvedInstances() call

* add dual Cache:: and cache() assertions

* add apc

* Flush APCu cache in test setup

* Revert "add dual Cache:: and cache() assertions"

This reverts commit a0bab162fbe2dd0d25e7056ceca4fb7ce54efc77.

* phpstan fix

* Add logic for scoping 'file' disks to FilesystemTenancyBootstrapper

* minor changes, add todos

* refactor how the session.connection is used in the DB session bootstrapper

* add session forgery prevention logic to the db session bootstrapper

* only use the fs bootstrapper for file disk in 'cache data is separated' dataset

* minor session scoping test changes

* Add session scoping logic to FilesystemTenancyBootstrapper, correctly update disk roots even with storage_path_tenancy disabled

* Fix code style (php-cs-fixer)

* update docblock

* make not-null check more explicit

* separate bootstrapper tests, fix swapped test names for two tests

* refactor cache bootstrapper tests

* resolve global cache todo

* expand tests: session separation tests, more filesystem separation assertions; change prefix_base-type config keys to templates/formats

* add apc session scoping test, various session separation bugfixes

* phpstan + minor logic fixes

* prefix_format -> prefix

* fix database session separation test

* revert composer.json changes, update laravel dependencies to expected next release

* only run session scoping logic in cache bootstrapper for redis, memcached, dynamodb, apc; update gitattributes

* tenancy.central_domains -> tenancy.identification.central_domains

* db session separation test: add datasets

---------

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-04-09 20:40:27 +02:00
..
Bootstrappers Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
Etc Filesystem logic refactor, improved defaults for cache tenancy (#42) 2024-04-02 04:26:10 +02:00
Features Improve file structure (#5) 2023-08-03 17:51:53 +02:00
ActionTest.php categorize todos 2024-03-12 17:29:00 +01:00
AutomaticModeTest.php Misc test fixes (#44) 2024-04-06 19:17:34 +02:00
BatchTest.php Rename bootstrappers (#40) 2024-03-28 03:18:23 +01:00
BroadcastingTest.php Fix global/central channel terminology 2023-12-13 19:11:18 +01:00
CachedTenantResolverTest.php Resolver refactor, path identification improvements (#41) 2024-03-28 03:18:11 +01:00
CloneActionTest.php Make clone action prefix already prefixed routes correctly (#28) 2024-02-10 18:19:20 +01:00
CombinedDomainAndSubdomainIdentificationTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
CommandsTest.php Misc test fixes (#44) 2024-04-06 19:17:34 +02:00
DatabasePreparationTest.php add public connection() method to the Tenant DB manager interface 2022-10-25 12:53:31 +02:00
DatabaseUsersTest.php Add permission-controlled SqlSrv database manager (#17) 2024-01-08 04:07:43 +01:00
DeleteDomainsJobTest.php Single-domain tenants (#16) 2023-11-08 11:38:26 +01:00
DomainTest.php Cache prefix mode for separating tenant caches (#1014) 2023-04-24 16:25:51 +02:00
EarlyIdentificationTest.php Give universal flag highest priority (#27) 2024-01-25 15:27:17 +01:00
EventListenerTest.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
GlobalCacheTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
MailTest.php Rename bootstrappers (#40) 2024-03-28 03:18:23 +01:00
MaintenanceModeTest.php Filesystem logic refactor, improved defaults for cache tenancy (#42) 2024-04-02 04:26:10 +02:00
ManualModeTest.php Manual mode improvements (use correct event type, add new listeners) (#1013) 2022-11-25 03:09:31 +01:00
OriginHeaderIdentificationTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
PathIdentificationTest.php Resolver refactor, path identification improvements (#41) 2024-03-28 03:18:11 +01:00
PendingTenantsTest.php Improve code of pending tenants (#1025) 2022-11-29 09:31:07 +01:00
Pest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
PreventAccessFromUnwantedDomainsTest.php Stop bypassing tenancy initializition when domain is central in domain ID MW (#24) 2024-01-03 23:35:49 +01:00
QueueTest.php Merge remote-tracking branch 'origin/master' into merge-public-repo-master 2024-02-10 21:55:54 +01:00
RequestDataIdentificationTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
ResourceSyncingTest.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
RouteMiddlewareTest.php Central routes without Route::domain(), configurable tenant/central routes by default for domain/subdomain identification, allow accessing central routes in early identification for path & request data middleware (#3) 2023-08-03 00:23:26 +02:00
ScopeSessionsTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
SessionSeparationTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
SingleDatabaseTenancyTest.php Misc test fixes (#44) 2024-04-06 19:17:34 +02:00
SingleDomainTenantTest.php Resolver refactor, path identification improvements (#41) 2024-03-28 03:18:11 +01:00
SubdomainTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
TenantAssetTest.php Filesystem logic refactor, improved defaults for cache tenancy (#42) 2024-04-02 04:26:10 +02:00
TenantAwareCommandTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantDatabaseManagerTest.php Clear bootstrappers in TestCase 2024-04-04 18:04:45 +02:00
TenantModelTest.php Add more tenant key generators (#36) 2024-03-28 03:17:55 +01:00
TenantUserImpersonationTest.php Add session state when impersonating tenant (#1029) 2022-12-17 02:08:03 +01:00
TestCase.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
UniversalRouteTest.php fix more files broken in automerge 2024-02-11 00:07:38 +01:00