A free open source IT asset/license management system
Remove old $tester variable and usused imports
Marcus Mooredd9c00195bca
diff --git a/tests/Unit/AccessoryTest.php b/tests/Unit/AccessoryTest.phpindex 25bd849b61..ec931fad6e 100644--- a/tests/Unit/AccessoryTest.php+++ b/tests/Unit/AccessoryTest.php@@ -6,20 +6,10 @@ use App\Models\Manufacturer;use App\Models\Location;use App\Models\Category;use App\Models\Company;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class AccessoryTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;---public function testAnAccessoryBelongsToACompany(){$accessory = Accessory::factory()diff --git a/tests/Unit/AssetMaintenanceTest.php b/tests/Unit/AssetMaintenanceTest.phpindex d403b7ff92..31b68c0cf5 100644--- a/tests/Unit/AssetMaintenanceTest.php+++ b/tests/Unit/AssetMaintenanceTest.php@@ -7,11 +7,6 @@ use Tests\TestCase;class AssetMaintenanceTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testZerosOutWarrantyIfBlank(){$c = new AssetMaintenance;diff --git a/tests/Unit/AssetModelTest.php b/tests/Unit/AssetModelTest.phpindex d1582c9066..7050ea307d 100644--- a/tests/Unit/AssetModelTest.php+++ b/tests/Unit/AssetModelTest.php@@ -4,18 +4,10 @@ namespace Tests\Unit;use App\Models\Asset;use App\Models\Category;use App\Models\AssetModel;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class AssetModelTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testAnAssetModelZerosOutBlankEols(){$am = new AssetModel;@@ -42,6 +34,4 @@ class AssetModelTest extends TestCase);$this->assertEquals(1, $model->assets()->count());}--}diff --git a/tests/Unit/AssetTest.php b/tests/Unit/AssetTest.phpindex d49137be74..f0a9b11f19 100644--- a/tests/Unit/AssetTest.php+++ b/tests/Unit/AssetTest.php@@ -1,28 +1,14 @@<?phpnamespace Tests\Unit;-use App\Exceptions\CheckoutNotAllowed;use App\Models\Asset;use App\Models\AssetModel;-use App\Models\Company;-use App\Models\Location;-use App\Models\User;use App\Models\Category;use Carbon\Carbon;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;-use App\Models\Component;-use App\Models\ActionLog;use Tests\TestCase;-class AssetTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-// public function testAutoIncrementMixed()// {// $expected = '123411';diff --git a/tests/Unit/CategoryTest.php b/tests/Unit/CategoryTest.phpindex 5a29e53885..8d749a3b22 100644--- a/tests/Unit/CategoryTest.php+++ b/tests/Unit/CategoryTest.php@@ -2,21 +2,12 @@namespace Tests\Unit;use App\Models\Category;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use App\Models\AssetModel;use App\Models\Asset;-use App\Models\Accessory;use Tests\TestCase;class CategoryTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testFailsEmptyValidation(){// An Asset requires a name, a qty, and a category_id.diff --git a/tests/Unit/CompanyTest.php b/tests/Unit/CompanyTest.phpindex c756b90848..6e04504843 100644--- a/tests/Unit/CompanyTest.php+++ b/tests/Unit/CompanyTest.php@@ -2,23 +2,11 @@namespace Tests\Unit;use App\Models\Company;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;-use App\Models\Component;-use App\Models\Asset;-use App\Models\Consumable;use App\Models\User;use Tests\TestCase;class CompanyTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;--public function testACompanyCanHaveUsers(){$company = Company::factory()->create();diff --git a/tests/Unit/ComponentTest.php b/tests/Unit/ComponentTest.phpindex 48a4a998ee..df8f64771f 100644--- a/tests/Unit/ComponentTest.php+++ b/tests/Unit/ComponentTest.php@@ -5,20 +5,10 @@ use App\Models\Category;use App\Models\Company;use App\Models\Component;use App\Models\Location;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class ComponentTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;---public function testAComponentBelongsToACompany(){$component = Component::factory()diff --git a/tests/Unit/CustomFieldTest.php b/tests/Unit/CustomFieldTest.phpindex 16313efb34..dbf96c55f8 100644--- a/tests/Unit/CustomFieldTest.php+++ b/tests/Unit/CustomFieldTest.php@@ -2,9 +2,6 @@namespace Tests\Unit;use App\Models\CustomField;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;/*@@ -13,8 +10,6 @@ use Tests\TestCase;*/class CustomFieldTest extends TestCase{- protected $tester;-public function testFormat(){$customfield = CustomField::factory()->make(['format' => 'IP']);diff --git a/tests/Unit/DepreciationTest.php b/tests/Unit/DepreciationTest.phpindex 84b10d7fbd..900ae73671 100644--- a/tests/Unit/DepreciationTest.php+++ b/tests/Unit/DepreciationTest.php@@ -9,13 +9,6 @@ use Tests\TestCase;class DepreciationTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;---public function testADepreciationHasModels(){$depreciation = Depreciation::factory()->create();diff --git a/tests/Unit/ImporterTest.php b/tests/Unit/ImporterTest.phpindex 94d537cce5..b3d5da8b38 100644--- a/tests/Unit/ImporterTest.php+++ b/tests/Unit/ImporterTest.php@@ -13,19 +13,11 @@ use App\Models\Category;use App\Models\CustomField;use App\Models\Location;use App\Models\User;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Illuminate\Support\Facades\Notification;use Tests\TestCase;class ImporterTest extends TestCase{- /**- * @var \UnitTester- */-// protected $tester;-// public function testDefaultImportAssetWithCustomFields()// {// $this->signIn();diff --git a/tests/Unit/LocationTest.php b/tests/Unit/LocationTest.phpindex a729201900..3fded9e568 100644--- a/tests/Unit/LocationTest.php+++ b/tests/Unit/LocationTest.php@@ -4,14 +4,8 @@ namespace Tests\Unit;use App\Models\Location;use Tests\TestCase;-class LocationTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testPassesIfNotSelfParent(){$a = Location::factory()->make([diff --git a/tests/Unit/NotificationTest.php b/tests/Unit/NotificationTest.phpindex 4cc0930252..33687ef639 100644--- a/tests/Unit/NotificationTest.php+++ b/tests/Unit/NotificationTest.php@@ -10,14 +10,8 @@ use App\Notifications\CheckoutAssetNotification;use Illuminate\Support\Facades\Notification;use Tests\TestCase;-class NotificationTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA(){$admin = User::factory()->superuser()->create();diff --git a/tests/Unit/PermissionsTest.php b/tests/Unit/PermissionsTest.phpindex dcdbd1bb47..e788585dd2 100644--- a/tests/Unit/PermissionsTest.php+++ b/tests/Unit/PermissionsTest.php@@ -7,9 +7,6 @@ use App\Models\Component;use App\Models\Consumable;use App\Models\License;use App\Models\User;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class PermissionsTest extends TestCasediff --git a/tests/Unit/SnipeModelTest.php b/tests/Unit/SnipeModelTest.phpindex 1455502216..2bc81da61b 100644--- a/tests/Unit/SnipeModelTest.php+++ b/tests/Unit/SnipeModelTest.php@@ -6,11 +6,6 @@ use Tests\TestCase;class SnipeModelTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testSetsPurchaseDatesAppropriately(){$c = new SnipeModel;diff --git a/tests/Unit/StatuslabelTest.php b/tests/Unit/StatuslabelTest.phpindex 2dfd0143c2..fe5f3cacc0 100644--- a/tests/Unit/StatuslabelTest.php+++ b/tests/Unit/StatuslabelTest.php@@ -2,18 +2,10 @@namespace Tests\Unit;use App\Models\Statuslabel;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class StatuslabelTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testRTDStatuslabelAdd(){$statuslabel = Statuslabel::factory()->rtd()->create();diff --git a/tests/Unit/UserTest.php b/tests/Unit/UserTest.phpindex c5eebd6b08..e089fc4023 100644--- a/tests/Unit/UserTest.php+++ b/tests/Unit/UserTest.php@@ -2,18 +2,10 @@namespace Tests\Unit;use App\Models\User;-use Illuminate\Foundation\Testing\DatabaseMigrations;-use Illuminate\Foundation\Testing\DatabaseTransactions;-use Illuminate\Foundation\Testing\WithoutMiddleware;use Tests\TestCase;class UserTest extends TestCase{- /**- * @var \UnitTester- */- protected $tester;-public function testFirstNameSplit(){$fullname = "Natalia Allanovna Romanova-O'Shostakova";