1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:34:03 +00:00

Disable TenantConfig by default

This commit is contained in:
Samuel Štancl 2019-10-04 21:33:48 +02:00
parent f77a929113
commit b66574b1ab
2 changed files with 9 additions and 6 deletions

View file

@ -13,10 +13,13 @@ class TenantConfigTest extends TestCase
public function config_is_merged_and_removed()
{
$this->assertSame(null, config('services.paypal'));
config(['tenancy.storage_to_config_map' => [
'paypal_api_public' => 'services.paypal.public',
'paypal_api_private' => 'services.paypal.private',
]]);
config([
'tenancy.storage_to_config_map' => [
'paypal_api_public' => 'services.paypal.public',
'paypal_api_private' => 'services.paypal.private',
],
'tenancy.features' => ['Stancl\Tenancy\Features\TenantConfig'],
]);
tenancy()->create('foo.localhost', [
'paypal_api_public' => 'foo',