Define test classes as final

This commit is contained in:
Shift 2024-08-06 20:25:22 +00:00
parent 83fb6826ee
commit 95516b0343
No known key found for this signature in database
GPG key ID: 5A96F038425C5A1C
106 changed files with 106 additions and 106 deletions

View file

@ -8,7 +8,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class CreateAssetModelsTest extends TestCase final class CreateAssetModelsTest extends TestCase
{ {

View file

@ -8,7 +8,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class IndexAssetModelsTest extends TestCase final class IndexAssetModelsTest extends TestCase
{ {
public function testViewingAssetModelIndexRequiresAuthentication(): void public function testViewingAssetModelIndexRequiresAuthentication(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateAssetModelsTest extends TestCase final class UpdateAssetModelsTest extends TestCase
{ {
public function testRequiresPermissionToEditAssetModel(): void public function testRequiresPermissionToEditAssetModel(): void

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateAssetModelsTest extends TestCase final class CreateAssetModelsTest extends TestCase
{ {
public function testPermissionRequiredToCreateAssetModel(): void public function testPermissionRequiredToCreateAssetModel(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\AssetModels\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class IndexAssetModelsTest extends TestCase final class IndexAssetModelsTest extends TestCase
{ {
public function testPermissionRequiredToViewAssetModelList(): void public function testPermissionRequiredToViewAssetModelList(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateAssetModelsTest extends TestCase final class UpdateAssetModelsTest extends TestCase
{ {
public function testPermissionRequiredToStoreAssetModel(): void public function testPermissionRequiredToStoreAssetModel(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\User;
use Illuminate\Http\UploadedFile; use Illuminate\Http\UploadedFile;
use Tests\TestCase; use Tests\TestCase;
class AssetFilesTest extends TestCase final class AssetFilesTest extends TestCase
{ {
public function testAssetApiAcceptsFileUpload(): void public function testAssetApiAcceptsFileUpload(): void
{ {

View file

@ -9,7 +9,7 @@ use Carbon\Carbon;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class AssetIndexTest extends TestCase final class AssetIndexTest extends TestCase
{ {
public function testAssetApiIndexReturnsExpectedAssets(): void public function testAssetApiIndexReturnsExpectedAssets(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class AssetsForSelectListTest extends TestCase final class AssetsForSelectListTest extends TestCase
{ {
public function testAssetsCanBeSearchedForByAssetTag(): void public function testAssetsCanBeSearchedForByAssetTag(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class RequestableAssetTest extends TestCase final class RequestableAssetTest extends TestCase
{ {
public function testViewingRequestableAssetsRequiresCorrectPermission(): void public function testViewingRequestableAssetsRequiresCorrectPermission(): void
{ {

View file

@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Crypt;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class StoreAssetTest extends TestCase final class StoreAssetTest extends TestCase
{ {
public function testRequiresPermissionToCreateAsset(): void public function testRequiresPermissionToCreateAsset(): void
{ {

View file

@ -13,7 +13,7 @@ use App\Models\CustomField;
use Illuminate\Support\Facades\Crypt; use Illuminate\Support\Facades\Crypt;
use Tests\TestCase; use Tests\TestCase;
class UpdateAssetTest extends TestCase final class UpdateAssetTest extends TestCase
{ {
public function testThatANonExistentAssetIdReturnsError(): void public function testThatANonExistentAssetIdReturnsError(): void
{ {

View file

@ -8,7 +8,7 @@ use App\Models\Asset;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class BulkDeleteAssetsTest extends TestCase final class BulkDeleteAssetsTest extends TestCase
{ {
public function testUserWithPermissionsCanAccessPage(): void public function testUserWithPermissionsCanAccessPage(): void
{ {

View file

@ -12,7 +12,7 @@ use App\Models\User;
use Illuminate\Support\Facades\Crypt; use Illuminate\Support\Facades\Crypt;
use Tests\TestCase; use Tests\TestCase;
class BulkEditAssetsTest extends TestCase final class BulkEditAssetsTest extends TestCase
{ {
public function testUserWithPermissionsCanAccessPage(): void public function testUserWithPermissionsCanAccessPage(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Asset;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CloneAssetTest extends TestCase final class CloneAssetTest extends TestCase
{ {
public function testPermissionRequiredToCreateAssetModel(): void public function testPermissionRequiredToCreateAssetModel(): void
{ {

View file

@ -8,7 +8,7 @@ use App\Models\StatusLabel;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class EditAssetTest extends TestCase final class EditAssetTest extends TestCase
{ {
public function testPermissionRequiredToViewLicense(): void public function testPermissionRequiredToViewLicense(): void

View file

@ -9,7 +9,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class CreateCategoriesTest extends TestCase final class CreateCategoriesTest extends TestCase
{ {

View file

@ -7,7 +7,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class IndexCategoriesTest extends TestCase final class IndexCategoriesTest extends TestCase
{ {
public function testViewingCategoryIndexRequiresPermission(): void public function testViewingCategoryIndexRequiresPermission(): void

View file

@ -6,7 +6,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateCategoriesTest extends TestCase final class UpdateCategoriesTest extends TestCase
{ {
public function testCanUpdateCategoryViaPatchWithoutCategoryType(): void public function testCanUpdateCategoryViaPatchWithoutCategoryType(): void

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateCategoriesTest extends TestCase final class CreateCategoriesTest extends TestCase
{ {
public function testPermissionRequiredToCreateCategories(): void public function testPermissionRequiredToCreateCategories(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Categories\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class IndexCategoriesTest extends TestCase final class IndexCategoriesTest extends TestCase
{ {
public function testPermissionRequiredToViewCategoryList(): void public function testPermissionRequiredToViewCategoryList(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Asset;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateCategoriesTest extends TestCase final class UpdateCategoriesTest extends TestCase
{ {
public function testPermissionRequiredToStoreCategory(): void public function testPermissionRequiredToStoreCategory(): void
{ {

View file

@ -13,7 +13,7 @@ use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Tests\TestCase; use Tests\TestCase;
class AssetCheckinTest extends TestCase final class AssetCheckinTest extends TestCase
{ {
public function testCheckingInAssetRequiresCorrectPermission(): void public function testCheckingInAssetRequiresCorrectPermission(): void
{ {

View file

@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class AccessoryCheckinTest extends TestCase final class AccessoryCheckinTest extends TestCase
{ {
public function testCheckingInAccessoryRequiresCorrectPermission(): void public function testCheckingInAccessoryRequiresCorrectPermission(): void
{ {

View file

@ -13,7 +13,7 @@ use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Tests\TestCase; use Tests\TestCase;
class AssetCheckinTest extends TestCase final class AssetCheckinTest extends TestCase
{ {
public function testCheckingInAssetRequiresCorrectPermission(): void public function testCheckingInAssetRequiresCorrectPermission(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Component;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ComponentCheckinTest extends TestCase final class ComponentCheckinTest extends TestCase
{ {
public function testCheckingInComponentRequiresCorrectPermission(): void public function testCheckingInComponentRequiresCorrectPermission(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\LicenseSeat;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LicenseCheckinTest extends TestCase final class LicenseCheckinTest extends TestCase
{ {
public function testCheckingInLicenseRequiresCorrectPermission(): void public function testCheckingInLicenseRequiresCorrectPermission(): void
{ {

View file

@ -11,7 +11,7 @@ use App\Notifications\AcceptanceAssetDeclinedNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class AccessoryAcceptanceTest extends TestCase final class AccessoryAcceptanceTest extends TestCase
{ {
/** /**
* This can be absorbed into a bigger test * This can be absorbed into a bigger test

View file

@ -9,7 +9,7 @@ use App\Notifications\CheckoutAccessoryNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class AccessoryCheckoutTest extends TestCase final class AccessoryCheckoutTest extends TestCase
{ {
public function testCheckingOutAccessoryRequiresCorrectPermission(): void public function testCheckingOutAccessoryRequiresCorrectPermission(): void
{ {

View file

@ -12,7 +12,7 @@ use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Tests\TestCase; use Tests\TestCase;
class AssetCheckoutTest extends TestCase final class AssetCheckoutTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -9,7 +9,7 @@ use App\Notifications\CheckoutConsumableNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class ConsumableCheckoutTest extends TestCase final class ConsumableCheckoutTest extends TestCase
{ {
public function testCheckingOutConsumableRequiresCorrectPermission(): void public function testCheckingOutConsumableRequiresCorrectPermission(): void
{ {

View file

@ -11,7 +11,7 @@ use App\Notifications\CheckoutAccessoryNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class AccessoryCheckoutTest extends TestCase final class AccessoryCheckoutTest extends TestCase
{ {
public function testCheckingOutAccessoryRequiresCorrectPermission(): void public function testCheckingOutAccessoryRequiresCorrectPermission(): void
{ {

View file

@ -15,7 +15,7 @@ use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Event;
use Tests\TestCase; use Tests\TestCase;
class AssetCheckoutTest extends TestCase final class AssetCheckoutTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Component;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ComponentsCheckoutTest extends TestCase final class ComponentsCheckoutTest extends TestCase
{ {
public function testCheckingOutComponentRequiresCorrectPermission(): void public function testCheckingOutComponentRequiresCorrectPermission(): void
{ {

View file

@ -11,7 +11,7 @@ use App\Notifications\CheckoutConsumableNotification;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class ConsumableCheckoutTest extends TestCase final class ConsumableCheckoutTest extends TestCase
{ {
public function testCheckingOutConsumableRequiresCorrectPermission(): void public function testCheckingOutConsumableRequiresCorrectPermission(): void
{ {

View file

@ -8,7 +8,7 @@ use App\Models\LicenseSeat;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LicenseCheckoutTest extends TestCase final class LicenseCheckoutTest extends TestCase
{ {
public function testNotesAreStoredInActionLogOnCheckoutToAsset(): void public function testNotesAreStoredInActionLogOnCheckoutToAsset(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Component;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ComponentIndexTest extends TestCase final class ComponentIndexTest extends TestCase
{ {
public function testComponentIndexAdheresToCompanyScoping(): void public function testComponentIndexAdheresToCompanyScoping(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Components\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ComponentIndexTest extends TestCase final class ComponentIndexTest extends TestCase
{ {
public function testPermissionRequiredToViewComponentsList(): void public function testPermissionRequiredToViewComponentsList(): void
{ {

View file

@ -11,7 +11,7 @@ use App\Models\Actionlog;
use Tests\TestCase; use Tests\TestCase;
class MergeUsersTest extends TestCase final class MergeUsersTest extends TestCase
{ {
public function testAssetsAreTransferredOnUserMerge(): void public function testAssetsAreTransferredOnUserMerge(): void
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\Feature\Console;
use Tests\TestCase; use Tests\TestCase;
class OptimizeTest extends TestCase final class OptimizeTest extends TestCase
{ {
public function testOptimizeSucceeds(): void public function testOptimizeSucceeds(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Consumable;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ConsumableIndexTest extends TestCase final class ConsumableIndexTest extends TestCase
{ {
public function testConsumableIndexAdheresToCompanyScoping(): void public function testConsumableIndexAdheresToCompanyScoping(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ConsumableUpdateTest extends TestCase final class ConsumableUpdateTest extends TestCase
{ {
public function testCanUpdateConsumableViaPatchWithoutCategoryType(): void public function testCanUpdateConsumableViaPatchWithoutCategoryType(): void

View file

@ -7,7 +7,7 @@ use App\Models\Consumable;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ConsumableViewTest extends TestCase final class ConsumableViewTest extends TestCase
{ {
public function testConsumableViewAdheresToCompanyScoping(): void public function testConsumableViewAdheresToCompanyScoping(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Consumables\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ConsumableIndexTest extends TestCase final class ConsumableIndexTest extends TestCase
{ {
public function testPermissionRequiredToViewConsumablesList(): void public function testPermissionRequiredToViewConsumablesList(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Consumable;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class ConsumableViewTest extends TestCase final class ConsumableViewTest extends TestCase
{ {
public function testPermissionRequiredToViewConsumable(): void public function testPermissionRequiredToViewConsumable(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class DashboardTest extends TestCase final class DashboardTest extends TestCase
{ {
public function testUsersWithoutAdminAccessAreRedirected(): void public function testUsersWithoutAdminAccessAreRedirected(): void
{ {

View file

@ -9,7 +9,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class CreateDepartmentsTest extends TestCase final class CreateDepartmentsTest extends TestCase
{ {

View file

@ -8,7 +8,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class DepartmentsIndexTest extends TestCase final class DepartmentsIndexTest extends TestCase
{ {
public function testViewingDepartmentIndexRequiresAuthentication(): void public function testViewingDepartmentIndexRequiresAuthentication(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateDepartmentsTest extends TestCase final class UpdateDepartmentsTest extends TestCase
{ {
public function testRequiresPermissionToEditDepartment(): void public function testRequiresPermissionToEditDepartment(): void

View file

@ -7,7 +7,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateDepartmentsTest extends TestCase final class CreateDepartmentsTest extends TestCase
{ {
public function testPermissionRequiredToCreateDepartment(): void public function testPermissionRequiredToCreateDepartment(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Departments\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class IndexDepartmentsTest extends TestCase final class IndexDepartmentsTest extends TestCase
{ {
public function testPermissionRequiredToViewDepartmentsList(): void public function testPermissionRequiredToViewDepartmentsList(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Category;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateDepartmentsTest extends TestCase final class UpdateDepartmentsTest extends TestCase
{ {
public function testPermissionRequiredToStoreDepartment(): void public function testPermissionRequiredToStoreDepartment(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Group;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class StoreGroupTest extends TestCase final class StoreGroupTest extends TestCase
{ {
public function testStoringGroupRequiresSuperAdminPermission(): void public function testStoringGroupRequiresSuperAdminPermission(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Groups\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class IndexGroupTest extends TestCase final class IndexGroupTest extends TestCase
{ {
public function testPermissionRequiredToViewGroupList(): void public function testPermissionRequiredToViewGroupList(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\License;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LicenseIndexTest extends TestCase final class LicenseIndexTest extends TestCase
{ {
public function testLicensesIndexAdheresToCompanyScoping(): void public function testLicensesIndexAdheresToCompanyScoping(): void
{ {

View file

@ -9,7 +9,7 @@ use App\Models\Depreciation;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateLicenseTest extends TestCase final class CreateLicenseTest extends TestCase
{ {
public function testPermissionRequiredToViewLicense(): void public function testPermissionRequiredToViewLicense(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Licenses\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LicenseIndexTest extends TestCase final class LicenseIndexTest extends TestCase
{ {
public function testPermissionRequiredToViewLicenseList(): void public function testPermissionRequiredToViewLicenseList(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Depreciation;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LicenseViewTest extends TestCase final class LicenseViewTest extends TestCase
{ {
public function testPermissionRequiredToViewLicense(): void public function testPermissionRequiredToViewLicense(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Livewire\CategoryEditForm;
use Livewire\Livewire; use Livewire\Livewire;
use Tests\TestCase; use Tests\TestCase;
class CategoryEditFormTest extends TestCase final class CategoryEditFormTest extends TestCase
{ {
public function testTheComponentCanRender(): void public function testTheComponentCanRender(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateLocationsTest extends TestCase final class CreateLocationsTest extends TestCase
{ {
public function testRequiresPermissionToCreateLocation(): void public function testRequiresPermissionToCreateLocation(): void

View file

@ -7,7 +7,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class DeleteLocationsTest extends TestCase final class DeleteLocationsTest extends TestCase
{ {
public function testErrorReturnedViaApiIfLocationDoesNotExist(): void public function testErrorReturnedViaApiIfLocationDoesNotExist(): void

View file

@ -8,7 +8,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class IndexLocationsTest extends TestCase final class IndexLocationsTest extends TestCase
{ {
public function testViewingLocationIndexRequiresAuthentication(): void public function testViewingLocationIndexRequiresAuthentication(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\User;
use Illuminate\Testing\Fluent\AssertableJson; use Illuminate\Testing\Fluent\AssertableJson;
use Tests\TestCase; use Tests\TestCase;
class LocationsForSelectListTest extends TestCase final class LocationsForSelectListTest extends TestCase
{ {
public function testGettingLocationListRequiresProperPermission(): void public function testGettingLocationListRequiresProperPermission(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Asset;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LocationsViewTest extends TestCase final class LocationsViewTest extends TestCase
{ {
public function testViewingLocationRequiresPermission(): void public function testViewingLocationRequiresPermission(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateLocationsTest extends TestCase final class UpdateLocationsTest extends TestCase
{ {
public function testRequiresPermissionToEditLocation(): void public function testRequiresPermissionToEditLocation(): void

View file

@ -7,7 +7,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CreateLocationsTest extends TestCase final class CreateLocationsTest extends TestCase
{ {
public function testPermissionRequiredToCreateLocation(): void public function testPermissionRequiredToCreateLocation(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Locations\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class IndexLocationsTest extends TestCase final class IndexLocationsTest extends TestCase
{ {
public function testPermissionRequiredToViewLocationsList(): void public function testPermissionRequiredToViewLocationsList(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateLocationsTest extends TestCase final class UpdateLocationsTest extends TestCase
{ {
public function testPermissionRequiredToStoreLocation(): void public function testPermissionRequiredToStoreLocation(): void
{ {

View file

@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
#[Group('notifications')] #[Group('notifications')]
class EmailNotificationsUponCheckinTest extends TestCase final class EmailNotificationsUponCheckinTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -19,7 +19,7 @@ use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
#[Group('notifications')] #[Group('notifications')]
class SlackNotificationsUponCheckinTest extends TestCase final class SlackNotificationsUponCheckinTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -21,7 +21,7 @@ use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
#[Group('notifications')] #[Group('notifications')]
class SlackNotificationsUponCheckoutTest extends TestCase final class SlackNotificationsUponCheckoutTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -10,7 +10,7 @@ use League\Csv\Reader;
use PHPUnit\Framework\Assert; use PHPUnit\Framework\Assert;
use Tests\TestCase; use Tests\TestCase;
class CustomReportTest extends TestCase final class CustomReportTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -10,7 +10,7 @@ use League\Csv\Reader;
use PHPUnit\Framework\Assert; use PHPUnit\Framework\Assert;
use Tests\TestCase; use Tests\TestCase;
class UnacceptedAssetReportTest extends TestCase final class UnacceptedAssetReportTest extends TestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -10,7 +10,7 @@ use App\Models\User;
use App\Models\Setting; use App\Models\Setting;
class BrandingSettingsTest extends TestCase final class BrandingSettingsTest extends TestCase
{ {
public function testSiteNameIsRequired(): void public function testSiteNameIsRequired(): void
{ {

View file

@ -19,7 +19,7 @@ use Illuminate\Testing\TestResponse;
use PDOException; use PDOException;
use Tests\TestCase; use Tests\TestCase;
class ShowSetUpPageTest extends TestCase final class ShowSetUpPageTest extends TestCase
{ {
/** /**
* We do not want to make actual http request on every test to check .env file * We do not want to make actual http request on every test to check .env file

View file

@ -8,7 +8,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class DeleteUserTest extends TestCase final class DeleteUserTest extends TestCase
{ {

View file

@ -8,7 +8,7 @@ use App\Models\Location;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class RestoreUserTest extends TestCase final class RestoreUserTest extends TestCase
{ {

View file

@ -10,7 +10,7 @@ use App\Models\User;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
use Tests\TestCase; use Tests\TestCase;
class UpdateUserTest extends TestCase final class UpdateUserTest extends TestCase
{ {
public function testCanUpdateUserViaPatch(): void public function testCanUpdateUserViaPatch(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\User;
use Laravel\Passport\Passport; use Laravel\Passport\Passport;
use Tests\TestCase; use Tests\TestCase;
class UserSearchTest extends TestCase final class UserSearchTest extends TestCase
{ {
public function testCanSearchByUserFirstAndLastName(): void public function testCanSearchByUserFirstAndLastName(): void
{ {

View file

@ -8,7 +8,7 @@ use Illuminate\Testing\Fluent\AssertableJson;
use Laravel\Passport\Passport; use Laravel\Passport\Passport;
use Tests\TestCase; use Tests\TestCase;
class UsersForSelectListTest extends TestCase final class UsersForSelectListTest extends TestCase
{ {
public function testUsersAreReturned(): void public function testUsersAreReturned(): void
{ {

View file

@ -8,7 +8,7 @@ use Illuminate\Testing\Fluent\AssertableJson;
use Laravel\Passport\Passport; use Laravel\Passport\Passport;
use Tests\TestCase; use Tests\TestCase;
class ViewUserTest extends TestCase final class ViewUserTest extends TestCase
{ {
public function testCanReturnUser(): void public function testCanReturnUser(): void

View file

@ -11,7 +11,7 @@ use App\Models\Company;
use App\Models\Asset; use App\Models\Asset;
class DeleteUserTest extends TestCase final class DeleteUserTest extends TestCase
{ {
public function testUserCanDeleteAnotherUser(): void public function testUserCanDeleteAnotherUser(): void

View file

@ -11,7 +11,7 @@ use App\Models\Actionlog;
use Tests\TestCase; use Tests\TestCase;
class MergeUsersTest extends TestCase final class MergeUsersTest extends TestCase
{ {
public function testAssetsAreTransferredOnUserMerge(): void public function testAssetsAreTransferredOnUserMerge(): void
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\Feature\Users\Ui;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class UpdateUserTest extends TestCase final class UpdateUserTest extends TestCase
{ {
public function testUsersCanBeActivatedWithNumber(): void public function testUsersCanBeActivatedWithNumber(): void
{ {

View file

@ -8,7 +8,7 @@ use App\Notifications\CurrentInventory;
use Illuminate\Support\Facades\Notification; use Illuminate\Support\Facades\Notification;
use Tests\TestCase; use Tests\TestCase;
class ViewUserTest extends TestCase final class ViewUserTest extends TestCase
{ {
public function testPermissionsForUserDetailPage(): void public function testPermissionsForUserDetailPage(): void
{ {

View file

@ -8,7 +8,7 @@ use App\Models\Category;
use App\Models\Company; use App\Models\Company;
use Tests\TestCase; use Tests\TestCase;
class AccessoryTest extends TestCase final class AccessoryTest extends TestCase
{ {
public function testAnAccessoryBelongsToACompany(): void public function testAnAccessoryBelongsToACompany(): void
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\AssetMaintenance; use App\Models\AssetMaintenance;
use Tests\TestCase; use Tests\TestCase;
class AssetMaintenanceTest extends TestCase final class AssetMaintenanceTest extends TestCase
{ {
public function testZerosOutWarrantyIfBlank(): void public function testZerosOutWarrantyIfBlank(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Category;
use App\Models\AssetModel; use App\Models\AssetModel;
use Tests\TestCase; use Tests\TestCase;
class AssetModelTest extends TestCase final class AssetModelTest extends TestCase
{ {
public function testAnAssetModelContainsAssets(): void public function testAnAssetModelContainsAssets(): void
{ {

View file

@ -8,7 +8,7 @@ use Carbon\Carbon;
use Tests\TestCase; use Tests\TestCase;
use App\Models\Setting; use App\Models\Setting;
class AssetTest extends TestCase final class AssetTest extends TestCase
{ {
public function testAutoIncrement(): void public function testAutoIncrement(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\AssetModel;
use App\Models\Asset; use App\Models\Asset;
use Tests\TestCase; use Tests\TestCase;
class CategoryTest extends TestCase final class CategoryTest extends TestCase
{ {
public function testFailsEmptyValidation(): void public function testFailsEmptyValidation(): void
{ {

View file

@ -15,7 +15,7 @@ use App\Models\User;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Tests\TestCase; use Tests\TestCase;
class CompanyScopingTest extends TestCase final class CompanyScopingTest extends TestCase
{ {
public static function models(): array public static function models(): array
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Component;
use App\Models\Location; use App\Models\Location;
use Tests\TestCase; use Tests\TestCase;
class ComponentTest extends TestCase final class ComponentTest extends TestCase
{ {
public function testAComponentBelongsToACompany(): void public function testAComponentBelongsToACompany(): void
{ {

View file

@ -8,7 +8,7 @@ use Tests\TestCase;
* Test strings for db column names gathered from * Test strings for db column names gathered from
* http://www.omniglot.com/language/phrases/hovercraft.htm * http://www.omniglot.com/language/phrases/hovercraft.htm
*/ */
class CustomFieldTest extends TestCase final class CustomFieldTest extends TestCase
{ {
public function testFormat(): void public function testFormat(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\License;
use App\Models\AssetModel; use App\Models\AssetModel;
use Tests\TestCase; use Tests\TestCase;
class DepreciationTest extends TestCase final class DepreciationTest extends TestCase
{ {
public function testADepreciationHasModels(): void public function testADepreciationHasModels(): void
{ {

View file

@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Session;
use Tests\TestCase; use Tests\TestCase;
class HelperTest extends TestCase final class HelperTest extends TestCase
{ {
public function testDefaultChartColorsMethodHandlesHighValues(): void public function testDefaultChartColorsMethodHandlesHighValues(): void
{ {

View file

@ -7,7 +7,7 @@ use App\Models\Ldap;
use Tests\TestCase; use Tests\TestCase;
#[Group('ldap')] #[Group('ldap')]
class LdapTest extends TestCase final class LdapTest extends TestCase
{ {
use \phpmock\phpunit\PHPMock; use \phpmock\phpunit\PHPMock;

View file

@ -8,7 +8,7 @@ use App\Models\Asset;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class LogListenerTest extends TestCase final class LogListenerTest extends TestCase
{ {
public function testLogsEntryOnCheckoutableCheckedOut(): void public function testLogsEntryOnCheckoutableCheckedOut(): void
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\Location; use App\Models\Location;
use Tests\TestCase; use Tests\TestCase;
class LocationTest extends TestCase final class LocationTest extends TestCase
{ {
public function testPassesIfNotSelfParent(): void public function testPassesIfNotSelfParent(): void
{ {

View file

@ -5,7 +5,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class CompanyTest extends TestCase final class CompanyTest extends TestCase
{ {
public function testACompanyCanHaveUsers(): void public function testACompanyCanHaveUsers(): void
{ {

View file

@ -6,7 +6,7 @@ use App\Models\Company;
use App\Models\User; use App\Models\User;
use Tests\TestCase; use Tests\TestCase;
class GetIdForCurrentUserTest extends TestCase final class GetIdForCurrentUserTest extends TestCase
{ {
public function testReturnsProvidedValueWhenFullCompanySupportDisabled(): void public function testReturnsProvidedValueWhenFullCompanySupportDisabled(): void
{ {

Some files were not shown because too many files have changed in this diff Show more