1
0
Fork 0
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:
lukinovec 2023-02-23 16:22:52 +01:00
parent 3e6dd646ae
commit 91f8adb698
3 changed files with 23 additions and 17 deletions

View file

@ -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);