From 7330bf5832ad085085179c70d1fbbcfd26465829 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 4 Jul 2024 21:52:47 +0100 Subject: [PATCH] Check for invalid Signed-off-by: snipe --- tests/Feature/AssetModels/Ui/UpdateAssetModelsTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Feature/AssetModels/Ui/UpdateAssetModelsTest.php b/tests/Feature/AssetModels/Ui/UpdateAssetModelsTest.php index 9d4d64cab2..ff2e5ef59f 100644 --- a/tests/Feature/AssetModels/Ui/UpdateAssetModelsTest.php +++ b/tests/Feature/AssetModels/Ui/UpdateAssetModelsTest.php @@ -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()); } + }