mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +00:00
update tests
This commit is contained in:
parent
7bdecd1c63
commit
fb3ff3fccf
1 changed files with 6 additions and 5 deletions
|
|
@ -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],
|
||||||
|
]);
|
||||||
|
TenantConfig::$storageToConfigMap = [
|
||||||
'paypal_api_public' => 'services.paypal.public',
|
'paypal_api_public' => 'services.paypal.public',
|
||||||
'paypal_api_private' => 'services.paypal.private',
|
'paypal_api_private' => 'services.paypal.private',
|
||||||
],
|
];
|
||||||
'tenancy.features' => ['Stancl\Tenancy\Features\TenantConfig'],
|
|
||||||
]);
|
|
||||||
|
|
||||||
tenancy()->create('foo.localhost', [
|
tenancy()->create('foo.localhost', [
|
||||||
'paypal_api_public' => 'foo',
|
'paypal_api_public' => 'foo',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue