trypost/tests/TestCase.php

35 lines
686 B
PHP
Raw Permalink Normal View History

2026-01-15 01:13:44 +00:00
<?php
2026-01-18 22:05:34 +00:00
declare(strict_types=1);
2026-01-15 01:13:44 +00:00
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
2026-01-18 22:05:34 +00:00
/**
* Indicates whether the default seeder should run before each test.
*
* @var bool
*/
protected $seed = true;
/**
* Whether to fake the Vite manifest. Browser tests drive a real browser and
* need the built assets, so they opt out via BrowserTestCase.
*/
protected bool $fakesVite = true;
2026-01-18 22:05:34 +00:00
protected function setUp(): void
{
parent::setUp();
2026-01-19 01:28:27 +00:00
if ($this->fakesVite) {
2026-07-04 00:46:19 +00:00
$this->withoutVite();
}
}
2026-01-15 01:13:44 +00:00
}