mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Remove UsesSettingsTrait (#12)
This commit is contained in:
parent
76a869a198
commit
b2ecb8f020
@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* For detailed copyright and license information, please view the
|
||||
* LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Testing\integration;
|
||||
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
|
||||
trait UsesSettings
|
||||
{
|
||||
/**
|
||||
* Removes the settings respository instance from the IoC container.
|
||||
*
|
||||
* This allows test cases that add/modify settings to refresh the in-memory settings cache.
|
||||
*/
|
||||
protected function purgeSettingsCache()
|
||||
{
|
||||
$this->app()->getContainer()->forgetInstance(SettingsRepositoryInterface::class);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user