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\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()

View file

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

View file

@ -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());
}
}

View file

@ -1,28 +1,14 @@
<?php
namespace 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';

View file

@ -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.

View file

@ -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();

View file

@ -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()

View file

@ -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']);

View file

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

View file

@ -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();

View file

@ -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([

View file

@ -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();

View file

@ -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

View file

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

View file

@ -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();

View file

@ -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";