From 185bc966e6c699e9ff4930a254c5c79405c0b836 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 9 Oct 2024 19:46:47 +0100 Subject: [PATCH] Cleaned up use statements in tests Signed-off-by: snipe --- tests/Feature/Settings/AlertsSettingTest.php | 4 ---- tests/Feature/Settings/BrandingSettingsTest.php | 1 - tests/Feature/Settings/LabelSettingTest.php | 4 ---- tests/Feature/Settings/LdapSettingsTests.php | 6 +----- tests/Feature/Settings/SecuritySettingTest.php | 4 ---- 5 files changed, 1 insertion(+), 18 deletions(-) diff --git a/tests/Feature/Settings/AlertsSettingTest.php b/tests/Feature/Settings/AlertsSettingTest.php index bb837981a..d79bd1cf2 100644 --- a/tests/Feature/Settings/AlertsSettingTest.php +++ b/tests/Feature/Settings/AlertsSettingTest.php @@ -2,12 +2,8 @@ namespace Tests\Feature\Settings; -use App\Models\Asset; use Tests\TestCase; -use Illuminate\Http\UploadedFile; -use Illuminate\Support\Facades\Storage; use App\Models\User; -use App\Models\Setting; class AlertsSettingTest extends TestCase diff --git a/tests/Feature/Settings/BrandingSettingsTest.php b/tests/Feature/Settings/BrandingSettingsTest.php index 03e2b013f..d751a1ab4 100644 --- a/tests/Feature/Settings/BrandingSettingsTest.php +++ b/tests/Feature/Settings/BrandingSettingsTest.php @@ -2,7 +2,6 @@ namespace Tests\Feature\Settings; -use App\Models\Asset; use Tests\TestCase; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; diff --git a/tests/Feature/Settings/LabelSettingTest.php b/tests/Feature/Settings/LabelSettingTest.php index 276e49866..e96c684a8 100644 --- a/tests/Feature/Settings/LabelSettingTest.php +++ b/tests/Feature/Settings/LabelSettingTest.php @@ -2,12 +2,8 @@ namespace Tests\Feature\Settings; -use App\Models\Asset; use Tests\TestCase; -use Illuminate\Http\UploadedFile; -use Illuminate\Support\Facades\Storage; use App\Models\User; -use App\Models\Setting; class LabelSettingTest extends TestCase diff --git a/tests/Feature/Settings/LdapSettingsTests.php b/tests/Feature/Settings/LdapSettingsTests.php index 33adfc4b4..2cda521da 100644 --- a/tests/Feature/Settings/LdapSettingsTests.php +++ b/tests/Feature/Settings/LdapSettingsTests.php @@ -2,12 +2,8 @@ namespace Tests\Feature\Settings; -use App\Models\Asset; use Tests\TestCase; -use Illuminate\Http\UploadedFile; -use Illuminate\Support\Facades\Storage; use App\Models\User; -use App\Models\Setting; class LdapSettingsTests extends TestCase @@ -22,7 +18,7 @@ class LdapSettingsTests extends TestCase public function testLdapSettingsCanBeSaved() { $response = $this->actingAs(User::factory()->superuser()->create()) - ->post(route('settings.alerts.save', ['ldap_enabled' => 1])) + ->post(route('settings.ldap.save', ['ldap_enabled' => 1])) ->assertStatus(302) ->assertValid('alert_email') ->assertRedirect(route('settings.index')) diff --git a/tests/Feature/Settings/SecuritySettingTest.php b/tests/Feature/Settings/SecuritySettingTest.php index d81df5599..6edeee673 100644 --- a/tests/Feature/Settings/SecuritySettingTest.php +++ b/tests/Feature/Settings/SecuritySettingTest.php @@ -2,12 +2,8 @@ namespace Tests\Feature\Settings; -use App\Models\Asset; use Tests\TestCase; -use Illuminate\Http\UploadedFile; -use Illuminate\Support\Facades\Storage; use App\Models\User; -use App\Models\Setting; class SecuritySettingTest extends TestCase