mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
18 lines
305 B
PHP
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);
|
|
}
|
|
}
|