A free open source IT asset/license management system
Cleaned up use statements in tests
snipe185bc966e6c6
diff --git a/tests/Feature/Settings/AlertsSettingTest.php b/tests/Feature/Settings/AlertsSettingTest.phpindex bb837981a8..d79bd1cf21 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 TestCasediff --git a/tests/Feature/Settings/BrandingSettingsTest.php b/tests/Feature/Settings/BrandingSettingsTest.phpindex 03e2b013f6..d751a1ab47 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.phpindex 276e49866a..e96c684a89 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 TestCasediff --git a/tests/Feature/Settings/LdapSettingsTests.php b/tests/Feature/Settings/LdapSettingsTests.phpindex 33adfc4b43..2cda521da1 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 TestCasepublic 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.phpindex d81df5599e..6edeee673b 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