ajout app
This commit is contained in:
17
SNIPE-IT/tests/Support/InitializesSettings.php
Normal file
17
SNIPE-IT/tests/Support/InitializesSettings.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user