diff --git a/tests/Unit/AccessoryTest.php b/tests/Unit/AccessoryTest.php index 25bd849b6..ec931fad6 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.php index d403b7ff9..31b68c0cf 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.php index d1582c906..7050ea307 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.php index d49137be7..f0a9b11f1 100644 --- a/tests/Unit/AssetTest.php +++ b/tests/Unit/AssetTest.php @@ -1,28 +1,14 @@ create(); diff --git a/tests/Unit/ComponentTest.php b/tests/Unit/ComponentTest.php index 48a4a998e..df8f64771 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.php index 16313efb3..dbf96c55f 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.php index 84b10d7fb..900ae7367 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.php index 94d537cce..b3d5da8b3 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.php index a72920190..3fded9e56 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.php index 4cc093025..33687ef63 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.php index dcdbd1bb4..e788585dd 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 TestCase diff --git a/tests/Unit/SnipeModelTest.php b/tests/Unit/SnipeModelTest.php index 145550221..2bc81da61 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.php index 2dfd0143c..fe5f3cacc 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.php index c5eebd6b0..e089fc402 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";