From dfdd85abb17422380499d20fe4596a759ff56e4c Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 3 Oct 2024 15:14:07 -0700 Subject: [PATCH] Remove unused imports --- tests/Feature/Importing/Api/ImportAccessoriesTest.php | 6 ------ tests/Feature/Importing/Api/ImportAssetsTest.php | 9 ++------- tests/Feature/Importing/Api/ImportComponentsTest.php | 8 ++------ tests/Feature/Importing/Api/ImportConsumablesTest.php | 8 ++------ tests/Feature/Importing/Api/ImportDataTestCase.php | 2 +- tests/Feature/Importing/Api/ImportLicenseTest.php | 8 ++------ tests/Feature/Importing/Api/ImportUsersTest.php | 9 ++------- 7 files changed, 11 insertions(+), 39 deletions(-) diff --git a/tests/Feature/Importing/Api/ImportAccessoriesTest.php b/tests/Feature/Importing/Api/ImportAccessoriesTest.php index 91f72fe747..aac9dabb1d 100644 --- a/tests/Feature/Importing/Api/ImportAccessoriesTest.php +++ b/tests/Feature/Importing/Api/ImportAccessoriesTest.php @@ -4,19 +4,13 @@ namespace Tests\Feature\Importing\Api; use App\Models\Accessory; use App\Models\Actionlog; -use App\Models\Company; use App\Models\Import; use App\Models\User; -use Database\Factories\AccessoryFactory; -use Database\Factories\CompanyFactory; use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\AccessoriesImportFileBuilder as ImportFileBuilder; use Tests\Support\Importing\CleansUpImportFiles; diff --git a/tests/Feature/Importing/Api/ImportAssetsTest.php b/tests/Feature/Importing/Api/ImportAssetsTest.php index 50c31d6d9f..e001add381 100644 --- a/tests/Feature/Importing/Api/ImportAssetsTest.php +++ b/tests/Feature/Importing/Api/ImportAssetsTest.php @@ -9,17 +9,12 @@ use App\Models\Import; use App\Models\User; use App\Notifications\CheckoutAssetNotification; use Carbon\Carbon; -use Database\Factories\AssetFactory; -use Database\Factories\CustomFieldFactory; -use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; -use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Notification; +use Illuminate\Support\Str; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\AssetsImportFileBuilder as ImportFileBuilder; use Tests\Support\Importing\CleansUpImportFiles; diff --git a/tests/Feature/Importing/Api/ImportComponentsTest.php b/tests/Feature/Importing/Api/ImportComponentsTest.php index 20f0e803da..376b5b32eb 100644 --- a/tests/Feature/Importing/Api/ImportComponentsTest.php +++ b/tests/Feature/Importing/Api/ImportComponentsTest.php @@ -6,15 +6,11 @@ use App\Models\Actionlog as ActionLog; use App\Models\Component; use App\Models\Import; use App\Models\User; -use Database\Factories\ComponentFactory; -use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; -use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Notification; +use Illuminate\Support\Str; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\CleansUpImportFiles; use Tests\Support\Importing\ComponentsImportFileBuilder as ImportFileBuilder; diff --git a/tests/Feature/Importing/Api/ImportConsumablesTest.php b/tests/Feature/Importing/Api/ImportConsumablesTest.php index d48486d19b..81bfdf4bf8 100644 --- a/tests/Feature/Importing/Api/ImportConsumablesTest.php +++ b/tests/Feature/Importing/Api/ImportConsumablesTest.php @@ -6,15 +6,11 @@ use App\Models\Actionlog as ActivityLog; use App\Models\Consumable; use App\Models\Import; use App\Models\User; -use Database\Factories\ConsumableFactory; -use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; -use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Notification; +use Illuminate\Support\Str; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\CleansUpImportFiles; use Tests\Support\Importing\ConsumablesImportFileBuilder as ImportFileBuilder; diff --git a/tests/Feature/Importing/Api/ImportDataTestCase.php b/tests/Feature/Importing/Api/ImportDataTestCase.php index 546b6c0f37..eaa2a8f03b 100644 --- a/tests/Feature/Importing/Api/ImportDataTestCase.php +++ b/tests/Feature/Importing/Api/ImportDataTestCase.php @@ -2,8 +2,8 @@ namespace Tests\Feature\Importing\Api; -use Tests\TestCase; use Illuminate\Testing\TestResponse; +use Tests\TestCase; abstract class ImportDataTestCase extends TestCase { diff --git a/tests/Feature/Importing/Api/ImportLicenseTest.php b/tests/Feature/Importing/Api/ImportLicenseTest.php index fb4b9b932c..0cd5fe447c 100644 --- a/tests/Feature/Importing/Api/ImportLicenseTest.php +++ b/tests/Feature/Importing/Api/ImportLicenseTest.php @@ -6,14 +6,10 @@ use App\Models\Actionlog as ActivityLog; use App\Models\Import; use App\Models\License; use App\Models\User; -use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; -use Database\Factories\LicenseFactory; -use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; +use Illuminate\Support\Str; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\CleansUpImportFiles; use Tests\Support\Importing\LicensesImportFileBuilder as ImportFileBuilder; diff --git a/tests/Feature/Importing/Api/ImportUsersTest.php b/tests/Feature/Importing/Api/ImportUsersTest.php index eb624e5609..f8c0b7c743 100644 --- a/tests/Feature/Importing/Api/ImportUsersTest.php +++ b/tests/Feature/Importing/Api/ImportUsersTest.php @@ -6,18 +6,13 @@ use App\Models\Asset; use App\Models\Import; use App\Models\Location; use App\Models\User; -use Database\Factories\AssetFactory; -use Illuminate\Support\Facades\Storage; -use Illuminate\Support\Str; -use Database\Factories\UserFactory; -use Database\Factories\ImportFactory; -use PHPUnit\Framework\Attributes\Test; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Notification; +use Illuminate\Support\Str; use Illuminate\Testing\TestResponse; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\Test; use Tests\Concerns\TestsPermissionsRequirement; use Tests\Support\Importing\CleansUpImportFiles; use Tests\Support\Importing\UsersImportFileBuilder as ImportFileBuilder;