mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-21 14:24:04 +00:00
1.2 KiB
1.2 KiB
Testing Reference
Use this when adding or reviewing tenancy behavior tests.
Source Files
tests/TestCase.phptests/Pest.phptests/*
High-Value Test Areas
- Installation and published files.
- Central route access.
- Tenant route access.
- Domain, subdomain, path, request data, and origin header identification.
- Identification failures.
- Tenant context API restoration after success and exceptions.
- Database connection switching and reverting.
- Cache, Redis, filesystem, session, queue, URL, mail, and broadcasting scoping.
- Tenant migrations, rollbacks, seeds, and tenant command options.
- Tenant lifecycle jobs and event pipelines.
- Resource syncing.
- User impersonation.
- Pending tenants.
- RLS policies.
- Optional features.
Useful Existing Tests
tests/AutomaticModeTest.phptests/ManualModeTest.phptests/RouteMiddlewareTest.phptests/PathIdentificationTest.phptests/RequestDataIdentificationTest.phptests/OriginHeaderIdentificationTest.phptests/TenantAssetTest.phptests/CommandsTest.phptests/QueueTest.phptests/SingleDatabaseTenancyTest.phptests/RLS/*tests/ResourceSyncingTest.phptests/TenantUserImpersonationTest.php