A free open source IT asset/license management system
Enhanced tests
snipe5e773be260cd
diff --git a/app/Models/Maintenance.php b/app/Models/Maintenance.phpindex aa52581d93..40a96dcb62 100644--- a/app/Models/Maintenance.php+++ b/app/Models/Maintenance.php@@ -58,6 +58,7 @@ class Maintenance extends SnipeModel implements ICompanyableChild'asset_maintenance_time','notes','cost',+ 'url',];use Searchable;diff --git a/tests/Feature/Maintenances/Ui/CreateMaintenanceTest.php b/tests/Feature/Maintenances/Ui/CreateMaintenanceTest.phpindex de1201e17f..a731828899 100644--- a/tests/Feature/Maintenances/Ui/CreateMaintenanceTest.php+++ b/tests/Feature/Maintenances/Ui/CreateMaintenanceTest.php@@ -46,6 +46,7 @@ class CreateMaintenanceTest extends TestCase'cost' => '100.00','image' => UploadedFile::fake()->image('test_image.png'),'notes' => 'A note',+ 'url' => 'https://snipeitapp.com',])->assertSessionHasNoErrors()->assertRedirect(route('maintenances.index'));@@ -67,6 +68,7 @@ class CreateMaintenanceTest extends TestCase'completion_date' => '2021-01-10','asset_maintenance_time' => '9','notes' => 'A note',+ 'url' => 'https://snipeitapp.com','cost' => '100.00','image' => $maintenance->image,'created_by' => $actor->id,diff --git a/tests/Feature/Maintenances/Ui/EditMaintenanceTest.php b/tests/Feature/Maintenances/Ui/EditMaintenanceTest.phpindex ad8aea4a56..cf92a10499 100644--- a/tests/Feature/Maintenances/Ui/EditMaintenanceTest.php+++ b/tests/Feature/Maintenances/Ui/EditMaintenanceTest.php@@ -38,6 +38,7 @@ class EditMaintenanceTest extends TestCase'image' => UploadedFile::fake()->image('test_image.png'),'cost' => '100.99','notes' => 'A note',+ 'url' => 'https://snipeitapp.com',])->assertSessionHasNoErrors()->assertRedirect(route('maintenances.index'));@@ -58,6 +59,7 @@ class EditMaintenanceTest extends TestCase'completion_date' => '2021-01-10','asset_maintenance_time' => '9','notes' => 'A note',+ 'url' => 'https://snipeitapp.com','cost' => '100.99',]);