mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Check for invalid
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d834ef5104
commit
7330bf5832
|
@ -69,6 +69,7 @@ class UpdateAssetModelsTest extends TestCase
|
|||
'category_id' => Category::factory()->forAccessories()->create()->id,
|
||||
])
|
||||
->assertSessionHasErrors(['category_type'])
|
||||
->assertInvalid(['category_type'])
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('models.edit', ['model' => $model->id]));
|
||||
|
||||
|
@ -76,4 +77,5 @@ class UpdateAssetModelsTest extends TestCase
|
|||
$this->assertFalse(AssetModel::where('name', 'Test Model Edited')->exists());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue