Improve InteractsWithSettings name
This commit is contained in:
parent
8003615b1f
commit
95ff692b14
2 changed files with 4 additions and 6 deletions
|
@ -4,7 +4,7 @@ namespace Tests\Support;
|
|||
|
||||
use App\Models\Setting;
|
||||
|
||||
trait InteractsWithSettings
|
||||
trait InitializesSettings
|
||||
{
|
||||
protected Settings $settings;
|
||||
|
|
@ -8,14 +8,14 @@ use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|||
use RuntimeException;
|
||||
use Tests\Support\CustomTestMacros;
|
||||
use Tests\Support\InteractsWithAuthentication;
|
||||
use Tests\Support\InteractsWithSettings;
|
||||
use Tests\Support\InitializesSettings;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
use CreatesApplication;
|
||||
use CustomTestMacros;
|
||||
use InteractsWithAuthentication;
|
||||
use InteractsWithSettings;
|
||||
use InitializesSettings;
|
||||
use LazilyRefreshDatabase;
|
||||
|
||||
private array $globallyDisabledMiddleware = [
|
||||
|
@ -34,9 +34,7 @@ abstract class TestCase extends BaseTestCase
|
|||
|
||||
$this->withoutMiddleware($this->globallyDisabledMiddleware);
|
||||
|
||||
if (collect(class_uses_recursive($this))->contains(InteractsWithSettings::class)) {
|
||||
$this->initializeSettings();
|
||||
}
|
||||
|
||||
$this->registerCustomMacros();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue