mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 13:54:03 +00:00
Delete ViteBundlerTest
This commit is contained in:
parent
8cb5d0bc0c
commit
4c7fff73ec
1 changed files with 0 additions and 34 deletions
|
|
@ -1,34 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Stancl\Tenancy\Features\ViteBundler;
|
|
||||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
|
||||||
use Stancl\Tenancy\Tests\TestCase;
|
|
||||||
use Stancl\Tenancy\Vite as StanclVite;
|
|
||||||
|
|
||||||
class ViteBundlerTest extends TestCase
|
|
||||||
{
|
|
||||||
/** @test */
|
|
||||||
public function the_vite_helper_uses_our_custom_class()
|
|
||||||
{
|
|
||||||
$vite = app(\Illuminate\Foundation\Vite::class);
|
|
||||||
|
|
||||||
$this->assertInstanceOf(\Illuminate\Foundation\Vite::class, $vite);
|
|
||||||
$this->assertNotInstanceOf(StanclVite::class, $vite);
|
|
||||||
|
|
||||||
config([
|
|
||||||
'tenancy.features' => [ViteBundler::class],
|
|
||||||
]);
|
|
||||||
|
|
||||||
$tenant = Tenant::create();
|
|
||||||
|
|
||||||
tenancy()->initialize($tenant);
|
|
||||||
|
|
||||||
app()->forgetInstance(\Illuminate\Foundation\Vite::class);
|
|
||||||
|
|
||||||
$vite = app(\Illuminate\Foundation\Vite::class);
|
|
||||||
|
|
||||||
$this->assertInstanceOf(StanclVite::class, $vite);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue