File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2323 */
2424 'tenant_finder ' => null ,
2525
26+ /*
27+ * Set this to true if you want to determine the current tenant
28+ * when running tests (e.g., during Pest browser tests).
29+ */
30+ 'determine_current_tenant_in_tests ' => false ,
31+
2632 /*
2733 * These fields are used by tenant:artisan command to match one or more tenant.
2834 */
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ protected function registerTenantFinder(): static
7474
7575 protected function configureRequests (): static
7676 {
77- if (! $ this ->app ->runningInConsole ()) {
77+ if (! $ this ->app ->runningInConsole () || ( $ this -> app -> runningUnitTests () && $ this -> app [ ' config ' ]-> get ( ' multitenancy.determine_current_tenant_in_tests ' )) ) {
7878 $ this ->determineCurrentTenant ();
7979 }
8080
You can’t perform that action at this time.
0 commit comments