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 () {