From d66c5f646c23f360f7c8d51121151e4da90e2a86 Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:24:26 +0100 Subject: [PATCH] Fix broken tests Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- tests/Requests/UserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Requests/UserTest.php b/tests/Requests/UserTest.php index a7783a5..e2e4889 100644 --- a/tests/Requests/UserTest.php +++ b/tests/Requests/UserTest.php @@ -14,7 +14,7 @@ }); it('has sometimes rule for inputs', function() { - expect('sometimes')->toBeIn(array_get((new UserRequest)->rules(), 'password')) + expect('nullable')->toBeIn(array_get((new UserRequest)->rules(), 'password')) ->and('sometimes')->toBeIn(array_get((new UserRequest)->rules(), 'user_role_id')) ->and('sometimes')->toBeIn(array_get((new UserRequest)->rules(), 'groups')); });