mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 10:04:13 -08:00
18 lines
303 B
PHP
18 lines
303 B
PHP
<?php
|
|
|
|
namespace Tests\Support;
|
|
|
|
use App\Models\Setting;
|
|
|
|
trait InitializesSettings
|
|
{
|
|
protected Settings $settings;
|
|
|
|
public function initializeSettings()
|
|
{
|
|
$this->settings = Settings::initialize();
|
|
|
|
$this->beforeApplicationDestroyed(fn() => Setting::$_cache = null);
|
|
}
|
|
}
|