Skip to content

A free open source IT asset/license management system

Add assertion

Marcus Moore3374a9e5a903
diff --git a/tests/Feature/Users/Ui/UpdateUserTest.php b/tests/Feature/Users/Ui/UpdateUserTest.php
index 30be2053b0..fd76c9c10a 100644
--- a/tests/Feature/Users/Ui/UpdateUserTest.php
+++ b/tests/Feature/Users/Ui/UpdateUserTest.php
@@ -189,5 +189,12 @@ class UpdateUserTest extends TestCase
// Avoid hard 500
return $exception instanceof Error;
}));
+
+ $this->assertDatabaseHas('users', [
+ 'id' => $id,
+ 'first_name' => 'test',
+ 'username' => 'test',
+ 'company_id' => $companyB->id,
+ ]);
}
}