You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-database testing, some database servers (I know MySQL specifically does it), silently reset transactions when you create tables, etc. Laravel Multitenancy in it's own tests creates databases in advance. I have created a service, so you can pre-provision a set number of already migrated tenant databases in advance of tests. This could be added to improve the ease of which users of the Laravel Multitenancy library build tests for their applications.
With #401 this could be done in a database version agnostic way, such that RefreshDatabase trait can be used in tests that work with tenants.
I have code with tests for this, this discussion is to determine interest in having a PR with this content.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Multi-database testing, some database servers (I know MySQL specifically does it), silently reset transactions when you create tables, etc. Laravel Multitenancy in it's own tests creates databases in advance. I have created a service, so you can pre-provision a set number of already migrated tenant databases in advance of tests. This could be added to improve the ease of which users of the Laravel Multitenancy library build tests for their applications.
With #401 this could be done in a database version agnostic way, such that
RefreshDatabase
trait can be used in tests that work with tenants.I have code with tests for this, this discussion is to determine interest in having a PR with this content.
Beta Was this translation helpful? Give feedback.
All reactions