1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00
tenancy/tests
lukinovec 8d38f42cd0
Correct asset helpers, make asset helpers work with path identification (#6)
* Make asset_helper_tenancy false by default

* Make tenant_asset() respect ASSET_URL

* Set asset helper tenancy to true in tests where needed

* If the `asset_helper_tenancy` key is missing, default to false in filesystem bootstrapper

* Make temporary clone action changes

* Make tenancy asset route universal

* Make the asset controller's asset method behave differently if path ID MW is the default

* Test that asset helper works with path identification

* Fix code style (php-cs-fixer)

* Delete path traversal attack prevention

* Fix code style (php-cs-fixer)

* Skip cloning of stancl.tenancy.asset route in some tests

* Fix code style (php-cs-fixer)

* Clone asset route in TSP stub

* Add cloning only the passed route

* Clone asset route in tenant asset test beforeEach

* Skip asset route cloning by default

* Fix typo

* Change public method back to protected

* Remove cloning of specific routes, skip cloning routes flagged as tenant

* Delete constructor from asset controiler, change asset method to invoke

* Update asset route registration, add prefixed asest route for path identification

* Use default middleware from config instead of `tenancy()->defaultMiddleware()`

* Delete old code from TSP stub

* Revert TSP stub change

* Revert FilesystemTenancyBootstrapper changes

* Suffix asset url in tenant_asset()

* Simplify `tenant_asset()`

* Ensure the base asset url is always suffixed with '/'

* remove unnecessary ?? false

---------

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2023-08-31 15:44:26 +02:00
..
Etc 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
Features Improve file structure (#5) 2023-08-03 17:51:53 +02:00
ActionTest.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
AutomaticModeTest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
BatchTest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
BootstrapperTest.php Fix #1112 - throw an exception if DATABASE_URL is set (#9) 2023-08-18 20:21:00 +02:00
BroadcastingTest.php Improve file structure (#5) 2023-08-03 17:51:53 +02:00
CachedTenantResolverTest.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
CacheManagerTest.php Cache prefix mode for separating tenant caches (#1014) 2023-04-24 16:25:51 +02:00
CombinedDomainAndSubdomainIdentificationTest.php Fix #998, centralize config used by BelongsToTenant and HasDomains 2022-11-10 16:03:13 +01:00
CommandsTest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
DatabasePreparationTest.php add public connection() method to the Tenant DB manager interface 2022-10-25 12:53:31 +02:00
DatabaseUsersTest.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
DeleteDomainsJobTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00
DomainTest.php Cache prefix mode for separating tenant caches (#1014) 2023-04-24 16:25:51 +02:00
EarlyIdentificationTest.php Improve route cloning action (#8) 2023-08-28 13:17:17 +02:00
EventListenerTest.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
GlobalCacheTest.php Improve file structure (#5) 2023-08-03 17:51:53 +02:00
MailTest.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
MaintenanceModeTest.php [4.x] Update commands CLI outputs (#968) 2022-10-18 19:11:57 +02:00
ManualModeTest.php Manual mode improvements (use correct event type, add new listeners) (#1013) 2022-11-25 03:09:31 +01:00
PathIdentificationTest.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
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
PrefixCacheBootstrapperTest.php Cache prefix mode for separating tenant caches (#1014) 2023-04-24 16:25:51 +02:00
PreventAccessFromUnwantedDomainsTest.php Improve file structure (#5) 2023-08-03 17:51:53 +02:00
QueueTest.php Use randomly generated tenant key instead of 'acme' in failing test (#10) 2023-08-25 17:01:47 +02:00
RequestDataIdentificationTest.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
ResourceSyncingTest.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
ResourceSyncingUsingPolymorphicTest.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
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 Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
SessionBootstrapperTest.php Add SessionTenancyBootstrapper (#2) 2022-11-20 02:32:25 +01:00
SingleDatabaseTenancyTest.php Fix #998, centralize config used by BelongsToTenant and HasDomains 2022-11-10 16:03:13 +01:00
SubdomainTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00
TenantAssetTest.php Correct asset helpers, make asset helpers work with path identification (#6) 2023-08-31 15:44:26 +02:00
TenantAwareCommandTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantDatabaseManagerTest.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
TenantModelTest.php Fix #998, centralize config used by BelongsToTenant and HasDomains 2022-11-10 16:03:13 +01:00
TenantUserImpersonationTest.php Add session state when impersonating tenant (#1029) 2022-12-17 02:08:03 +01:00
TestCase.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
UniversalRouteTest.php Improve route cloning action (#8) 2023-08-28 13:17:17 +02:00