Check for invalid

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-04 21:52:47 +01:00
parent d834ef5104
commit 7330bf5832

View file

@ -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());
}
}