3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 02:45:39 +00:00

Continue implementing tests

This commit is contained in:
Marcus Moore
2023-02-02 17:41:32 -08:00
parent a2e47d19fc
commit 89eff23e44
3 changed files with 51 additions and 4 deletions

View File

@ -2,9 +2,17 @@
namespace Tests;
use App\Models\Setting;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected function setUp(): void
{
parent::setUp();
$this->beforeApplicationDestroyed(fn() => Setting::$_cache = null);
}
}