mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:24:03 +00:00
enable feature in TestCase
This commit is contained in:
parent
ec1c2e6c74
commit
afb942b6be
2 changed files with 4 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ use Stancl\Tenancy\Bootstrappers\BatchTenancyBootstrapper;
|
|||
use Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper;
|
||||
use Stancl\Tenancy\Facades\GlobalCache;
|
||||
use Stancl\Tenancy\Facades\Tenancy;
|
||||
use Stancl\Tenancy\Features\CrossDomainRedirect;
|
||||
use Stancl\Tenancy\TenancyServiceProvider;
|
||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
|
||||
|
|
@ -117,6 +118,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
|||
|
||||
protected function getPackageProviders($app)
|
||||
{
|
||||
config()->set('tenancy.features', [CrossDomainRedirect::class]); // todo (Samuel) use proper approach to enable feature in right place
|
||||
|
||||
return [
|
||||
TenancyServiceProvider::class,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue