From c0810f047bb991790ba96acb7428a92c82293a5e Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Mon, 1 Apr 2024 20:21:02 +0200 Subject: [PATCH] add test --- tests/Feature/ToDoTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Feature/ToDoTest.php b/tests/Feature/ToDoTest.php index cfaa04b..077c763 100644 --- a/tests/Feature/ToDoTest.php +++ b/tests/Feature/ToDoTest.php @@ -25,7 +25,8 @@ test('an user can add todo', function () { expect($this->user->toDos) ->toHaveCount(1) ->first()->name->toBe('Test') - ->first()->checked->toBeNull(); + ->first()->checked->toBeNull() + ->first()->user->id->toBe($this->user->id); }); test('an user can retrieve his to dos', function () {