1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:44:02 +00:00
tenancy/tests
Riley19280 b78320b882
[4.x] Add batch tenancy queue bootstrapper (#874)
* exclude master from CI

* Add batch tenancy queue bootstrapper

* add test case

* skip tests for old versions

* variable docblocks

* use Laravel's connection getter and setter

* convert test to pest

* bottom space

* singleton regis in TestCase

* Update src/Bootstrappers/BatchTenancyBootstrapper.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* convert batch class resolution to property level

* enabled BatchTenancyBootstrapper by default

* typehint DatabaseBatchRepository

* refactore name

* DI DB manager

* typehint

* Update config.php

* use initialize() twice without end()ing tenancy to assert that previousConnection logic works correctly

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-09-26 14:13:58 +02:00
..
Etc [4.x] Improve tenants:run command to execute Input\Output commands (#923) 2022-09-02 18:46:13 +02:00
Features Pull 3.x changes into master (#922) 2022-08-22 17:59:43 +02:00
AutomaticModeTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
BatchTest.php [4.x] Add batch tenancy queue bootstrapper (#874) 2022-09-26 14:13:58 +02:00
BootstrapperTest.php [4.x] Optionally delete storage after tenant deletion (#938) 2022-09-20 19:42:00 +02:00
CachedTenantResolverTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
CacheManagerTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
CombinedDomainAndSubdomainIdentificationTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
CommandsTest.php [4.x] Finish incomplete and missing tests (#947) 2022-09-24 04:08:44 +02:00
DatabasePreparationTest.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
DatabaseUsersTest.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
DebuggableTest.php wip Debuggable trait 2022-07-28 15:14:29 +02:00
DeleteDomainsJobTest.php [4.x] Migrate tests to Pest (#884) 2022-07-22 19:26:59 +02:00
DomainTest.php feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail… (#679) 2022-07-25 18:37:52 +02:00
EventListenerTest.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
GlobalCacheTest.php [4.x] Migrate tests to Pest (#884) 2022-07-22 19:26:59 +02:00
MaintenanceModeTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
PathIdentificationTest.php [4.x] Set tenant as a default parameter for the URLs when using Path identification (#925) 2022-09-02 19:04:00 +02:00
Pest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
QueueTest.php added $this->mockConsoleOutput (#907) 2022-07-27 01:35:55 +02:00
RequestDataIdentificationTest.php [4.x] Migrate tests to Pest (#884) 2022-07-22 19:26:59 +02:00
ResourceSyncingTest.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
ScopeSessionsTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
SingleDatabaseTenancyTest.php [4.x] Finish incomplete and missing tests (#947) 2022-09-24 04:08:44 +02:00
SubdomainTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantAssetTest.php Pull 3.x changes into master (#922) 2022-08-22 17:59:43 +02:00
TenantAwareCommandTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantDatabaseManagerTest.php [4.x] Finish incomplete and missing tests (#947) 2022-09-24 04:08:44 +02:00
TenantModelTest.php misc improvements - stronger types, exception refactor 2022-08-26 21:35:17 +02:00
TenantUserImpersonationTest.php [4.x] Make impersonation tokens require stateful guards (#935) 2022-09-02 17:46:27 +02:00
TestCase.php [4.x] Add batch tenancy queue bootstrapper (#874) 2022-09-26 14:13:58 +02:00
UniversalRouteTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00