snipe-it/tests/Support/InteractsWithSettings.php

18 lines
300 B
PHP
Raw Normal View History

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