1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:54:03 +00:00
tenancy/tests
lukinovec 2057e1e5ae
[4.x] Make forcing RLS configurable (#1293)
* Add `$forceRls` static property to tenants:rls

* Set `$forceRls` in tests where scoping is tested, add non-superuser, non-bypassrls table owner test

* Move DROP TABLE statement

* Remove try/catch

* Put DROP OWNED BY into try/catch

* Static property cleanup in afterEach

* Make with() matrix syntax more clear by using with() multiple times

* Fix typo, improve comment

* Move and update force RLS comment

* Add test for `$forceRls = false`, refactor BYPASSRLS test

* Update link in test comment

* Add a dataset for `$forceRls` in the table owner test, fix BYPASSRLS test

* Correct PR link comment

* minor fixes

* Add test that makes the bypassrls/forceRls behavior clear

* Delete redundant test

* cleanup

* Update tests/RLS/TableManagerTest.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-05 05:06:05 +02:00
..
Bootstrappers [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
Etc [4.x] Fix tenants:run argument parsing (#1287) 2025-01-11 12:03:09 +01:00
Features [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
RLS [4.x] Make forcing RLS configurable (#1293) 2025-06-05 05:06:05 +02:00
ActionTest.php [4.x] Make RemoveStorageSymlinksAction able to delete broken symlinks (#1323) 2025-03-18 21:27:27 +01:00
AutomaticModeTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
BroadcastingTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
CachedTenantResolverTest.php [4.x] Invalidate resolver cache on delete (#1329) 2025-03-13 17:03:49 +01:00
CloneActionTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
CombinedDomainAndSubdomainIdentificationTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
CommandsTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
DatabasePreparationTest.php add public connection() method to the Tenant DB manager interface 2022-10-25 12:53:31 +02:00
DatabaseUsersTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
DeleteDomainsJobTest.php Resolve test to-dos (#45) 2024-04-18 00:22:03 +02:00
DomainTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
EarlyIdentificationTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
EventListenerTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
GlobalCacheTest.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00
MailTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
MaintenanceModeTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
ManualModeTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
OriginHeaderIdentificationTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
PathIdentificationTest.php [4.x] Test that route model binding works correctly with path identification (#1360) 2025-06-02 19:05:17 +02:00
PendingTenantsTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
Pest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
PreventAccessFromUnwantedDomainsTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
QueueTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
RequestDataIdentificationTest.php [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
ResourceSyncingTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
RouteMiddlewareTest.php Refactor early identification (#47) 2024-04-22 11:30:58 +02:00
RunForMultipleTest.php [4.x] Fix 1267: early return in runForMultiple if an empty array is passed (#1286) 2025-02-14 08:19:02 +01:00
ScopeSessionsTest.php [4.x] Make ScopeSessions usable on universal routes (#1342) 2025-04-04 03:15:37 +02:00
SessionSeparationTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
SingleDatabaseTenancyTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
SingleDomainTenantTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
SubdomainTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
TenantAssetTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
TenantAwareCommandTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
TenantDatabaseManagerTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
TenantModelTest.php [4.x] Add ULIDGenerator (#1332) 2025-03-18 19:00:35 +01:00
TenantUserImpersonationTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
TestCase.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
UniversalRouteTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00