Update validation in AssetRequest form request

This commit is contained in:
snipe 2016-12-15 15:24:55 -08:00
parent e5286229e0
commit 8ad509d7f1
2 changed files with 8 additions and 8 deletions

View file

@ -29,15 +29,15 @@ class AssetRequest extends Request
'name' => 'min:2|max:255',
'model_id' => 'required|integer',
'status_id' => 'required|integer',
'company_id' => 'integer',
'warranty_months' => 'integer|min:0|max:240',
'physical' => 'integer',
'company_id' => 'integer|nullable',
'warranty_months' => 'numeric|nullable',
'physical' => 'integer|nullable',
'checkout_date' => 'date',
'checkin_date' => 'date',
'supplier_id' => 'integer',
'status' => 'integer',
'supplier_id' => 'integer|nullable',
'status' => 'integer|nullable',
'asset_tag' => 'required',
'purchase_cost' => 'numeric',
'purchase_cost' => 'numeric|nullable',
];

View file

@ -51,7 +51,7 @@ class AssetsCest
'rtd_location_id' => $asset->rtd_location_id,
'requestable' => $asset->requestable,
];
///print_r($values);
$I->wantTo("Test Validation Succeeds");
$I->amOnPage(route('hardware.create'));
$I->submitForm('form#create-form', $values);