mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
skip vite test in Laravel < 9
This commit is contained in:
parent
ab2af5b388
commit
8ecdb49531
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class ViteBundlerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function the_vite_helper_uses_our_custom_class()
|
public function the_vite_helper_uses_our_custom_class()
|
||||||
{
|
{
|
||||||
|
if (version_compare(app()->version(), '9.0', '<')) {
|
||||||
|
$this->markTestSkipped('Vite is only used in Laravel 9+');
|
||||||
|
}
|
||||||
|
|
||||||
$vite = app(\Illuminate\Foundation\Vite::class);
|
$vite = app(\Illuminate\Foundation\Vite::class);
|
||||||
|
|
||||||
$this->assertInstanceOf(FoundationVite::class, $vite);
|
$this->assertInstanceOf(FoundationVite::class, $vite);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue