mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:14:04 +00:00
Update config reverting test
This commit is contained in:
parent
71bfdecced
commit
b96ff262ef
1 changed files with 5 additions and 1 deletions
|
|
@ -350,7 +350,11 @@ test('MailTenancyBootstrapper reverts the config to default when tenancy ends',
|
|||
MailTenancyBootstrapper::$credentialsMap = ['mail.mailers.smtp.password' => 'smtp_password'];
|
||||
config(['mail.mailers.smtp.password' => $defaultPassword = 'no password']);
|
||||
|
||||
Tenant::create(['smtp_password' => 'testing password'])->run(fn() => '');
|
||||
tenancy()->initialize(Tenant::create(['smtp_password' => $tenantPassword = 'testing password']));
|
||||
|
||||
expect(config('mail.mailers.smtp.password'))->toBe($tenantPassword);
|
||||
|
||||
tenancy()->end();
|
||||
|
||||
expect(config('mail.mailers.smtp.password'))->toBe($defaultPassword);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue