A free open source IT asset/license management system
Improve InteractsWithSettings name
Marcus Moore95ff692b14a1
diff --git a/tests/Support/InteractsWithSettings.php b/tests/Support/InitializesSettings.phpsimilarity index 90%rename from tests/Support/InteractsWithSettings.phprename to tests/Support/InitializesSettings.phpindex a8c0070188..7c08e6f897 100644--- a/tests/Support/InteractsWithSettings.php+++ b/tests/Support/InitializesSettings.php@@ -4,7 +4,7 @@ namespace Tests\Support;use App\Models\Setting;-trait InteractsWithSettings+trait InitializesSettings{protected Settings $settings;diff --git a/tests/TestCase.php b/tests/TestCase.phpindex 9b77eeb328..8a3321ac62 100644--- a/tests/TestCase.php+++ b/tests/TestCase.php@@ -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->initializeSettings();$this->registerCustomMacros();}