1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00

skip vite test in Laravel < 9

This commit is contained in:
Samuel Štancl 2022-09-28 16:49:41 +02:00
parent ab2af5b388
commit 8ecdb49531

View file

@ -13,6 +13,10 @@ class ViteBundlerTest extends TestCase
/** @test */
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);
$this->assertInstanceOf(FoundationVite::class, $vite);