Remove old $tester variable and usused imports

This commit is contained in:
Marcus Moore 2023-03-07 17:04:46 -08:00
parent 43ff7261b2
commit dd9c00195b
No known key found for this signature in database
16 changed files with 0 additions and 126 deletions

View file

@ -6,20 +6,10 @@ use App\Models\Manufacturer;
use App\Models\Location; use App\Models\Location;
use App\Models\Category; use App\Models\Category;
use App\Models\Company; use App\Models\Company;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class AccessoryTest extends TestCase class AccessoryTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testAnAccessoryBelongsToACompany() public function testAnAccessoryBelongsToACompany()
{ {
$accessory = Accessory::factory() $accessory = Accessory::factory()

View file

@ -7,11 +7,6 @@ use Tests\TestCase;
class AssetMaintenanceTest extends TestCase class AssetMaintenanceTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testZerosOutWarrantyIfBlank() public function testZerosOutWarrantyIfBlank()
{ {
$c = new AssetMaintenance; $c = new AssetMaintenance;

View file

@ -4,18 +4,10 @@ namespace Tests\Unit;
use App\Models\Asset; use App\Models\Asset;
use App\Models\Category; use App\Models\Category;
use App\Models\AssetModel; use App\Models\AssetModel;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class AssetModelTest extends TestCase class AssetModelTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testAnAssetModelZerosOutBlankEols() public function testAnAssetModelZerosOutBlankEols()
{ {
$am = new AssetModel; $am = new AssetModel;
@ -42,6 +34,4 @@ class AssetModelTest extends TestCase
); );
$this->assertEquals(1, $model->assets()->count()); $this->assertEquals(1, $model->assets()->count());
} }
} }

View file

@ -1,28 +1,14 @@
<?php <?php
namespace Tests\Unit; namespace Tests\Unit;
use App\Exceptions\CheckoutNotAllowed;
use App\Models\Asset; use App\Models\Asset;
use App\Models\AssetModel; use App\Models\AssetModel;
use App\Models\Company;
use App\Models\Location;
use App\Models\User;
use App\Models\Category; use App\Models\Category;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use App\Models\Component;
use App\Models\ActionLog;
use Tests\TestCase; use Tests\TestCase;
class AssetTest extends TestCase class AssetTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
// public function testAutoIncrementMixed() // public function testAutoIncrementMixed()
// { // {
// $expected = '123411'; // $expected = '123411';

View file

@ -2,21 +2,12 @@
namespace Tests\Unit; namespace Tests\Unit;
use App\Models\Category; 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\AssetModel;
use App\Models\Asset; use App\Models\Asset;
use App\Models\Accessory;
use Tests\TestCase; use Tests\TestCase;
class CategoryTest extends TestCase class CategoryTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testFailsEmptyValidation() public function testFailsEmptyValidation()
{ {
// An Asset requires a name, a qty, and a category_id. // An Asset requires a name, a qty, and a category_id.

View file

@ -2,23 +2,11 @@
namespace Tests\Unit; namespace Tests\Unit;
use App\Models\Company; 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 App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CompanyTest extends TestCase class CompanyTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testACompanyCanHaveUsers() public function testACompanyCanHaveUsers()
{ {
$company = Company::factory()->create(); $company = Company::factory()->create();

View file

@ -5,20 +5,10 @@ use App\Models\Category;
use App\Models\Company; use App\Models\Company;
use App\Models\Component; use App\Models\Component;
use App\Models\Location; use App\Models\Location;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class ComponentTest extends TestCase class ComponentTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testAComponentBelongsToACompany() public function testAComponentBelongsToACompany()
{ {
$component = Component::factory() $component = Component::factory()

View file

@ -2,9 +2,6 @@
namespace Tests\Unit; namespace Tests\Unit;
use App\Models\CustomField; use App\Models\CustomField;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
/* /*
@ -13,8 +10,6 @@ use Tests\TestCase;
*/ */
class CustomFieldTest extends TestCase class CustomFieldTest extends TestCase
{ {
protected $tester;
public function testFormat() public function testFormat()
{ {
$customfield = CustomField::factory()->make(['format' => 'IP']); $customfield = CustomField::factory()->make(['format' => 'IP']);

View file

@ -9,13 +9,6 @@ use Tests\TestCase;
class DepreciationTest extends TestCase class DepreciationTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testADepreciationHasModels() public function testADepreciationHasModels()
{ {
$depreciation = Depreciation::factory()->create(); $depreciation = Depreciation::factory()->create();

View file

@ -13,19 +13,11 @@ use App\Models\Category;
use App\Models\CustomField; use App\Models\CustomField;
use App\Models\Location; use App\Models\Location;
use App\Models\User; 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 Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class ImporterTest extends TestCase class ImporterTest extends TestCase
{ {
/**
* @var \UnitTester
*/
// protected $tester;
// public function testDefaultImportAssetWithCustomFields() // public function testDefaultImportAssetWithCustomFields()
// { // {
// $this->signIn(); // $this->signIn();

View file

@ -4,14 +4,8 @@ namespace Tests\Unit;
use App\Models\Location; use App\Models\Location;
use Tests\TestCase; use Tests\TestCase;
class LocationTest extends TestCase class LocationTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testPassesIfNotSelfParent() public function testPassesIfNotSelfParent()
{ {
$a = Location::factory()->make([ $a = Location::factory()->make([

View file

@ -10,14 +10,8 @@ use App\Notifications\CheckoutAssetNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class NotificationTest extends TestCase class NotificationTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA() public function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA()
{ {
$admin = User::factory()->superuser()->create(); $admin = User::factory()->superuser()->create();

View file

@ -7,9 +7,6 @@ use App\Models\Component;
use App\Models\Consumable; use App\Models\Consumable;
use App\Models\License; use App\Models\License;
use App\Models\User; use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class PermissionsTest extends TestCase class PermissionsTest extends TestCase

View file

@ -6,11 +6,6 @@ use Tests\TestCase;
class SnipeModelTest extends TestCase class SnipeModelTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testSetsPurchaseDatesAppropriately() public function testSetsPurchaseDatesAppropriately()
{ {
$c = new SnipeModel; $c = new SnipeModel;

View file

@ -2,18 +2,10 @@
namespace Tests\Unit; namespace Tests\Unit;
use App\Models\Statuslabel; use App\Models\Statuslabel;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class StatuslabelTest extends TestCase class StatuslabelTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testRTDStatuslabelAdd() public function testRTDStatuslabelAdd()
{ {
$statuslabel = Statuslabel::factory()->rtd()->create(); $statuslabel = Statuslabel::factory()->rtd()->create();

View file

@ -2,18 +2,10 @@
namespace Tests\Unit; namespace Tests\Unit;
use App\Models\User; use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase; use Tests\TestCase;
class UserTest extends TestCase class UserTest extends TestCase
{ {
/**
* @var \UnitTester
*/
protected $tester;
public function testFirstNameSplit() public function testFirstNameSplit()
{ {
$fullname = "Natalia Allanovna Romanova-O'Shostakova"; $fullname = "Natalia Allanovna Romanova-O'Shostakova";