1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00
tenancy/tests
lukinovec 342c67fe02
Add skip-failing option to the Migrate command (#945)
* Add and test Migrate command's skip-failing option

* Improve naming

* Move migration event dispatching inside try block

* Change test name

* Fix skip-failing test

* Use QueryException instead of Exception

* Correct TenantDatabaseDoesNotExistException import

* Correct test

* Check for the the testing env in DB bootstrapper

* Correct the Migrate command

* Fix code style (php-cs-fixer)

* add docs todo

* Add QueryException to the Migrat command try/catch

* Return status codes in Migrate

* Fix code style (php-cs-fixer)

* Add test for not stopping tenants:migrate after the first failure

* Update Migrate command

* Fix code style (php-cs-fixer)

* Fix code style (php-cs-fixer)

* Use `getTenants()`

* Use withtenantDatabases where needed

* Add withTenantDatabases to test

---------

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2023-02-01 06:55:26 +01:00
..
Etc Merge branch 'master' of github.com:archtechx/tenancy 2023-01-04 03:27:04 +01:00
Features Pull 3.x changes into master (#922) 2022-08-22 17:59:43 +02:00
ActionTest.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +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 Make tenants able to have custom mail credentials (#989) 2023-01-04 02:12:25 +01:00
CachedTenantResolverTest.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
CacheManagerTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +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 general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
DeleteDomainsJobTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00
DomainTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00
EarlyIdentificationTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00
EventListenerTest.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
GlobalCacheTest.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00
MailTest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01: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 Add identification section to config, refactor static properties 2022-10-01 20:01:18 +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
QueueTest.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
RequestDataIdentificationTest.php Add cookie option on Initialize Tenancy by Request identification (#980) 2022-10-18 13:52:16 +02:00
ResourceSyncingTest.php [4.x] Resource syncing improvements (#992) 2022-11-09 13:00:54 +01: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 Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
TenantAwareCommandTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantDatabaseManagerTest.php [4.x] Use a dedicated DB connection for creating/deleting tenant databases (#946) 2022-10-31 12:13:54 +01: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 Make tenants able to have custom mail credentials (#989) 2023-01-04 02:12:25 +01:00
UniversalRouteTest.php Early identification support (#1) 2022-11-20 02:31:37 +01:00