mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 05:24:04 +00:00
Bootstrap features manually in tests
This commit is contained in:
parent
3e6dd646ae
commit
91f8adb698
3 changed files with 23 additions and 17 deletions
|
|
@ -6,6 +6,7 @@ use Illuminate\Foundation\Vite;
|
|||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
use Stancl\Tenancy\Vite as StanclVite;
|
||||
use Stancl\Tenancy\Features\ViteBundler;
|
||||
use Stancl\Tenancy\TenancyServiceProvider;
|
||||
|
||||
test('vite helper uses our custom class', function() {
|
||||
$vite = app(Vite::class);
|
||||
|
|
@ -17,6 +18,8 @@ test('vite helper uses our custom class', function() {
|
|||
'tenancy.features' => [ViteBundler::class],
|
||||
]);
|
||||
|
||||
TenancyServiceProvider::bootstrapFeatures();
|
||||
|
||||
$tenant = Tenant::create();
|
||||
|
||||
tenancy()->initialize($tenant);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue