3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-06 07:05:50 +00:00
Files
snipe-it/tests/Support/InteractsWithSettings.php
2023-05-01 16:06:28 -07:00

18 lines
305 B
PHP

<?php
namespace Tests\Support;
use App\Models\Setting;
trait InteractsWithSettings
{
protected Settings $settings;
public function initializeSettings()
{
$this->settings = Settings::initialize();
$this->beforeApplicationDestroyed(fn() => Setting::$_cache = null);
}
}