1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 03:14:04 +00:00

update tests

This commit is contained in:
Samuel Štancl 2020-05-03 17:50:26 +02:00
parent 7bdecd1c63
commit fb3ff3fccf

View file

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Features; namespace Stancl\Tenancy\Tests\Features;
use Stancl\Tenancy\Features\TenantConfig;
use Stancl\Tenancy\Tests\TestCase; use Stancl\Tenancy\Tests\TestCase;
class TenantConfigTest extends TestCase class TenantConfigTest extends TestCase
@ -16,12 +17,12 @@ class TenantConfigTest extends TestCase
{ {
$this->assertSame(null, config('services.paypal')); $this->assertSame(null, config('services.paypal'));
config([ config([
'tenancy.storage_to_config_map' => [ 'tenancy.features' => [TenantConfig::class],
'paypal_api_public' => 'services.paypal.public',
'paypal_api_private' => 'services.paypal.private',
],
'tenancy.features' => ['Stancl\Tenancy\Features\TenantConfig'],
]); ]);
TenantConfig::$storageToConfigMap = [
'paypal_api_public' => 'services.paypal.public',
'paypal_api_private' => 'services.paypal.private',
];
tenancy()->create('foo.localhost', [ tenancy()->create('foo.localhost', [
'paypal_api_public' => 'foo', 'paypal_api_public' => 'foo',