mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
parent
82e795b642
commit
3e832e5e94
|
@ -8,7 +8,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateAssetModelsTest extends TestCase
|
||||
class CreateAssetModelsTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexAssetModelsTest extends TestCase
|
||||
class IndexAssetModelsTest extends TestCase
|
||||
{
|
||||
public function testViewingAssetModelIndexRequiresAuthentication()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateAssetModelsTest extends TestCase
|
||||
class UpdateAssetModelsTest extends TestCase
|
||||
{
|
||||
|
||||
public function testRequiresPermissionToEditAssetModel()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateAssetModelsTest extends TestCase
|
||||
class CreateAssetModelsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateAssetModel()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\AssetModels\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexAssetModelsTest extends TestCase
|
||||
class IndexAssetModelsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewAssetModelList()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateAssetModelsTest extends TestCase
|
||||
class UpdateAssetModelsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToStoreAssetModel()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\User;
|
|||
use Illuminate\Http\UploadedFile;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetFilesTest extends TestCase
|
||||
class AssetFilesTest extends TestCase
|
||||
{
|
||||
public function testAssetApiAcceptsFileUpload()
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use Carbon\Carbon;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetIndexTest extends TestCase
|
||||
class AssetIndexTest extends TestCase
|
||||
{
|
||||
public function testAssetApiIndexReturnsExpectedAssets()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetsForSelectListTest extends TestCase
|
||||
class AssetsForSelectListTest extends TestCase
|
||||
{
|
||||
public function testAssetsCanBeSearchedForByAssetTag()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class RequestableAssetTest extends TestCase
|
||||
class RequestableAssetTest extends TestCase
|
||||
{
|
||||
public function testViewingRequestableAssetsRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Crypt;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class StoreAssetTest extends TestCase
|
||||
class StoreAssetTest extends TestCase
|
||||
{
|
||||
public function testRequiresPermissionToCreateAsset()
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ use App\Models\CustomField;
|
|||
use Illuminate\Support\Facades\Crypt;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateAssetTest extends TestCase
|
||||
class UpdateAssetTest extends TestCase
|
||||
{
|
||||
public function testThatANonExistentAssetIdReturnsError()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\Asset;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class BulkDeleteAssetsTest extends TestCase
|
||||
class BulkDeleteAssetsTest extends TestCase
|
||||
{
|
||||
public function testUserWithPermissionsCanAccessPage()
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ use App\Models\User;
|
|||
use Illuminate\Support\Facades\Crypt;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class BulkEditAssetsTest extends TestCase
|
||||
class BulkEditAssetsTest extends TestCase
|
||||
{
|
||||
public function testUserWithPermissionsCanAccessPage()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Asset;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CloneAssetTest extends TestCase
|
||||
class CloneAssetTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateAssetModel()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\StatusLabel;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class EditAssetTest extends TestCase
|
||||
class EditAssetTest extends TestCase
|
||||
{
|
||||
|
||||
public function testPermissionRequiredToViewLicense()
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateCategoriesTest extends TestCase
|
||||
class CreateCategoriesTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexCategoriesTest extends TestCase
|
||||
class IndexCategoriesTest extends TestCase
|
||||
{
|
||||
|
||||
public function testViewingCategoryIndexRequiresPermission()
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateCategoriesTest extends TestCase
|
||||
class UpdateCategoriesTest extends TestCase
|
||||
{
|
||||
|
||||
public function testCanUpdateCategoryViaPatchWithoutCategoryType()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateCategoriesTest extends TestCase
|
||||
class CreateCategoriesTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateCategories()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Categories\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexCategoriesTest extends TestCase
|
||||
class IndexCategoriesTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewCategoryList()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Asset;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateCategoriesTest extends TestCase
|
||||
class UpdateCategoriesTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToStoreCategory()
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ use Illuminate\Support\Carbon;
|
|||
use Illuminate\Support\Facades\Event;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetCheckinTest extends TestCase
|
||||
class AssetCheckinTest extends TestCase
|
||||
{
|
||||
public function testCheckingInAssetRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Event;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AccessoryCheckinTest extends TestCase
|
||||
class AccessoryCheckinTest extends TestCase
|
||||
{
|
||||
public function testCheckingInAccessoryRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ use Illuminate\Support\Carbon;
|
|||
use Illuminate\Support\Facades\Event;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetCheckinTest extends TestCase
|
||||
class AssetCheckinTest extends TestCase
|
||||
{
|
||||
public function testCheckingInAssetRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Component;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ComponentCheckinTest extends TestCase
|
||||
class ComponentCheckinTest extends TestCase
|
||||
{
|
||||
public function testCheckingInComponentRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\LicenseSeat;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LicenseCheckinTest extends TestCase
|
||||
class LicenseCheckinTest extends TestCase
|
||||
{
|
||||
public function testCheckingInLicenseRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Notifications\AcceptanceAssetDeclinedNotification;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AccessoryAcceptanceTest extends TestCase
|
||||
class AccessoryAcceptanceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* This can be absorbed into a bigger test
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Notifications\CheckoutAccessoryNotification;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AccessoryCheckoutTest extends TestCase
|
||||
class AccessoryCheckoutTest extends TestCase
|
||||
{
|
||||
public function testCheckingOutAccessoryRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ use Illuminate\Support\Carbon;
|
|||
use Illuminate\Support\Facades\Event;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetCheckoutTest extends TestCase
|
||||
class AssetCheckoutTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Notifications\CheckoutConsumableNotification;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableCheckoutTest extends TestCase
|
||||
class ConsumableCheckoutTest extends TestCase
|
||||
{
|
||||
public function testCheckingOutConsumableRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Notifications\CheckoutAccessoryNotification;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AccessoryCheckoutTest extends TestCase
|
||||
class AccessoryCheckoutTest extends TestCase
|
||||
{
|
||||
public function testCheckingOutAccessoryRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ use Illuminate\Support\Carbon;
|
|||
use Illuminate\Support\Facades\Event;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetCheckoutTest extends TestCase
|
||||
class AssetCheckoutTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Component;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ComponentsCheckoutTest extends TestCase
|
||||
class ComponentsCheckoutTest extends TestCase
|
||||
{
|
||||
public function testCheckingOutComponentRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Notifications\CheckoutConsumableNotification;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableCheckoutTest extends TestCase
|
||||
class ConsumableCheckoutTest extends TestCase
|
||||
{
|
||||
public function testCheckingOutConsumableRequiresCorrectPermission()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\LicenseSeat;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LicenseCheckoutTest extends TestCase
|
||||
class LicenseCheckoutTest extends TestCase
|
||||
{
|
||||
public function testNotesAreStoredInActionLogOnCheckoutToAsset()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Component;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ComponentIndexTest extends TestCase
|
||||
class ComponentIndexTest extends TestCase
|
||||
{
|
||||
public function testComponentIndexAdheresToCompanyScoping()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Components\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ComponentIndexTest extends TestCase
|
||||
class ComponentIndexTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewComponentsList()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Models\Actionlog;
|
|||
use Tests\TestCase;
|
||||
|
||||
|
||||
final class MergeUsersTest extends TestCase
|
||||
class MergeUsersTest extends TestCase
|
||||
{
|
||||
public function testAssetsAreTransferredOnUserMerge()
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Tests\Feature\Console;
|
|||
|
||||
use Tests\TestCase;
|
||||
|
||||
final class OptimizeTest extends TestCase
|
||||
class OptimizeTest extends TestCase
|
||||
{
|
||||
public function testOptimizeSucceeds()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Consumable;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableIndexTest extends TestCase
|
||||
class ConsumableIndexTest extends TestCase
|
||||
{
|
||||
public function testConsumableIndexAdheresToCompanyScoping()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableUpdateTest extends TestCase
|
||||
class ConsumableUpdateTest extends TestCase
|
||||
{
|
||||
|
||||
public function testCanUpdateConsumableViaPatchWithoutCategoryType()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Consumable;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableViewTest extends TestCase
|
||||
class ConsumableViewTest extends TestCase
|
||||
{
|
||||
public function testConsumableViewAdheresToCompanyScoping()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Consumables\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableIndexTest extends TestCase
|
||||
class ConsumableIndexTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewConsumablesList()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Consumable;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ConsumableViewTest extends TestCase
|
||||
class ConsumableViewTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewConsumable()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class DashboardTest extends TestCase
|
||||
class DashboardTest extends TestCase
|
||||
{
|
||||
public function testUsersWithoutAdminAccessAreRedirected()
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateDepartmentsTest extends TestCase
|
||||
class CreateDepartmentsTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class DepartmentsIndexTest extends TestCase
|
||||
class DepartmentsIndexTest extends TestCase
|
||||
{
|
||||
public function testViewingDepartmentIndexRequiresAuthentication()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateDepartmentsTest extends TestCase
|
||||
class UpdateDepartmentsTest extends TestCase
|
||||
{
|
||||
|
||||
public function testRequiresPermissionToEditDepartment()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateDepartmentsTest extends TestCase
|
||||
class CreateDepartmentsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateDepartment()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Departments\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexDepartmentsTest extends TestCase
|
||||
class IndexDepartmentsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewDepartmentsList()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Category;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateDepartmentsTest extends TestCase
|
||||
class UpdateDepartmentsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToStoreDepartment()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Group;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class StoreGroupTest extends TestCase
|
||||
class StoreGroupTest extends TestCase
|
||||
{
|
||||
public function testStoringGroupRequiresSuperAdminPermission()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Groups\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexGroupTest extends TestCase
|
||||
class IndexGroupTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewGroupList()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\License;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LicenseIndexTest extends TestCase
|
||||
class LicenseIndexTest extends TestCase
|
||||
{
|
||||
public function testLicensesIndexAdheresToCompanyScoping()
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use App\Models\Depreciation;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateLicenseTest extends TestCase
|
||||
class CreateLicenseTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewLicense()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Licenses\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LicenseIndexTest extends TestCase
|
||||
class LicenseIndexTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewLicenseList()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Depreciation;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LicenseViewTest extends TestCase
|
||||
class LicenseViewTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewLicense()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Livewire\CategoryEditForm;
|
|||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CategoryEditFormTest extends TestCase
|
||||
class CategoryEditFormTest extends TestCase
|
||||
{
|
||||
public function testTheComponentCanRender()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateLocationsTest extends TestCase
|
||||
class CreateLocationsTest extends TestCase
|
||||
{
|
||||
|
||||
public function testRequiresPermissionToCreateLocation()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class DeleteLocationsTest extends TestCase
|
||||
class DeleteLocationsTest extends TestCase
|
||||
{
|
||||
|
||||
public function testErrorReturnedViaApiIfLocationDoesNotExist()
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexLocationsTest extends TestCase
|
||||
class IndexLocationsTest extends TestCase
|
||||
{
|
||||
public function testViewingLocationIndexRequiresAuthentication()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\User;
|
|||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LocationsForSelectListTest extends TestCase
|
||||
class LocationsForSelectListTest extends TestCase
|
||||
{
|
||||
public function testGettingLocationListRequiresProperPermission()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Asset;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LocationsViewTest extends TestCase
|
||||
class LocationsViewTest extends TestCase
|
||||
{
|
||||
public function testViewingLocationRequiresPermission()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateLocationsTest extends TestCase
|
||||
class UpdateLocationsTest extends TestCase
|
||||
{
|
||||
|
||||
public function testRequiresPermissionToEditLocation()
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CreateLocationsTest extends TestCase
|
||||
class CreateLocationsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateLocation()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Locations\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IndexLocationsTest extends TestCase
|
||||
class IndexLocationsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToViewLocationsList()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateLocationsTest extends TestCase
|
||||
class UpdateLocationsTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToStoreLocation()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Notification;
|
|||
use Tests\TestCase;
|
||||
|
||||
#[Group('notifications')]
|
||||
final class EmailNotificationsUponCheckinTest extends TestCase
|
||||
class EmailNotificationsUponCheckinTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ use Illuminate\Support\Facades\Notification;
|
|||
use Tests\TestCase;
|
||||
|
||||
#[Group('notifications')]
|
||||
final class SlackNotificationsUponCheckinTest extends TestCase
|
||||
class SlackNotificationsUponCheckinTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ use Illuminate\Support\Facades\Notification;
|
|||
use Tests\TestCase;
|
||||
|
||||
#[Group('notifications')]
|
||||
final class SlackNotificationsUponCheckoutTest extends TestCase
|
||||
class SlackNotificationsUponCheckoutTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use League\Csv\Reader;
|
|||
use PHPUnit\Framework\Assert;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CustomReportTest extends TestCase
|
||||
class CustomReportTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use League\Csv\Reader;
|
|||
use PHPUnit\Framework\Assert;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UnacceptedAssetReportTest extends TestCase
|
||||
class UnacceptedAssetReportTest extends TestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use App\Models\User;
|
|||
use App\Models\Setting;
|
||||
|
||||
|
||||
final class BrandingSettingsTest extends TestCase
|
||||
class BrandingSettingsTest extends TestCase
|
||||
{
|
||||
public function testSiteNameIsRequired()
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ use Illuminate\Testing\TestResponse;
|
|||
use PDOException;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ShowSetUpPageTest extends TestCase
|
||||
class ShowSetUpPageTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* We do not want to make actual http request on every test to check .env file
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class DeleteUserTest extends TestCase
|
||||
class DeleteUserTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\Location;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class RestoreUserTest extends TestCase
|
||||
class RestoreUserTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use App\Models\User;
|
|||
use Illuminate\Support\Facades\Hash;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateUserTest extends TestCase
|
||||
class UpdateUserTest extends TestCase
|
||||
{
|
||||
public function testCanUpdateUserViaPatch()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\User;
|
|||
use Laravel\Passport\Passport;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UserSearchTest extends TestCase
|
||||
class UserSearchTest extends TestCase
|
||||
{
|
||||
public function testCanSearchByUserFirstAndLastName()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Testing\Fluent\AssertableJson;
|
|||
use Laravel\Passport\Passport;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UsersForSelectListTest extends TestCase
|
||||
class UsersForSelectListTest extends TestCase
|
||||
{
|
||||
public function testUsersAreReturned()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Testing\Fluent\AssertableJson;
|
|||
use Laravel\Passport\Passport;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ViewUserTest extends TestCase
|
||||
class ViewUserTest extends TestCase
|
||||
{
|
||||
|
||||
public function testCanReturnUser()
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Models\Company;
|
|||
|
||||
use App\Models\Asset;
|
||||
|
||||
final class DeleteUserTest extends TestCase
|
||||
class DeleteUserTest extends TestCase
|
||||
{
|
||||
|
||||
public function testUserCanDeleteAnotherUser()
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Models\Actionlog;
|
|||
use Tests\TestCase;
|
||||
|
||||
|
||||
final class MergeUsersTest extends TestCase
|
||||
class MergeUsersTest extends TestCase
|
||||
{
|
||||
public function testAssetsAreTransferredOnUserMerge()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Feature\Users\Ui;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class UpdateUserTest extends TestCase
|
||||
class UpdateUserTest extends TestCase
|
||||
{
|
||||
public function testUsersCanBeActivatedWithNumber()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Notifications\CurrentInventory;
|
|||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ViewUserTest extends TestCase
|
||||
class ViewUserTest extends TestCase
|
||||
{
|
||||
public function testPermissionsForUserDetailPage()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\Category;
|
|||
use App\Models\Company;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AccessoryTest extends TestCase
|
||||
class AccessoryTest extends TestCase
|
||||
{
|
||||
public function testAnAccessoryBelongsToACompany()
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Tests\Unit;
|
|||
use App\Models\AssetMaintenance;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetMaintenanceTest extends TestCase
|
||||
class AssetMaintenanceTest extends TestCase
|
||||
{
|
||||
public function testZerosOutWarrantyIfBlank()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Category;
|
|||
use App\Models\AssetModel;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class AssetModelTest extends TestCase
|
||||
class AssetModelTest extends TestCase
|
||||
{
|
||||
public function testAnAssetModelContainsAssets()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Carbon\Carbon;
|
|||
use Tests\TestCase;
|
||||
use App\Models\Setting;
|
||||
|
||||
final class AssetTest extends TestCase
|
||||
class AssetTest extends TestCase
|
||||
{
|
||||
public function testAutoIncrement()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\AssetModel;
|
|||
use App\Models\Asset;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CategoryTest extends TestCase
|
||||
class CategoryTest extends TestCase
|
||||
{
|
||||
public function testFailsEmptyValidation()
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ use App\Models\User;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CompanyScopingTest extends TestCase
|
||||
class CompanyScopingTest extends TestCase
|
||||
{
|
||||
public static function models(): array
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Component;
|
|||
use App\Models\Location;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class ComponentTest extends TestCase
|
||||
class ComponentTest extends TestCase
|
||||
{
|
||||
public function testAComponentBelongsToACompany()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Tests\TestCase;
|
|||
* Test strings for db column names gathered from
|
||||
* http://www.omniglot.com/language/phrases/hovercraft.htm
|
||||
*/
|
||||
final class CustomFieldTest extends TestCase
|
||||
class CustomFieldTest extends TestCase
|
||||
{
|
||||
public function testFormat()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\License;
|
|||
use App\Models\AssetModel;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class DepreciationTest extends TestCase
|
||||
class DepreciationTest extends TestCase
|
||||
{
|
||||
public function testADepreciationHasModels()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Redirect;
|
|||
use Illuminate\Support\Facades\Session;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class HelperTest extends TestCase
|
||||
class HelperTest extends TestCase
|
||||
{
|
||||
public function testDefaultChartColorsMethodHandlesHighValues()
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ use App\Models\Ldap;
|
|||
use Tests\TestCase;
|
||||
|
||||
#[Group('ldap')]
|
||||
final class LdapTest extends TestCase
|
||||
class LdapTest extends TestCase
|
||||
{
|
||||
use \phpmock\phpunit\PHPMock;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use App\Models\Asset;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LogListenerTest extends TestCase
|
||||
class LogListenerTest extends TestCase
|
||||
{
|
||||
public function testLogsEntryOnCheckoutableCheckedOut()
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Tests\Unit;
|
|||
use App\Models\Location;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class LocationTest extends TestCase
|
||||
class LocationTest extends TestCase
|
||||
{
|
||||
public function testPassesIfNotSelfParent()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class CompanyTest extends TestCase
|
||||
class CompanyTest extends TestCase
|
||||
{
|
||||
public function testACompanyCanHaveUsers()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Models\Company;
|
|||
use App\Models\User;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class GetIdForCurrentUserTest extends TestCase
|
||||
class GetIdForCurrentUserTest extends TestCase
|
||||
{
|
||||
public function testReturnsProvidedValueWhenFullCompanySupportDisabled()
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue