add test
This commit is contained in:
@@ -25,7 +25,8 @@ test('an user can add todo', function () {
|
|||||||
expect($this->user->toDos)
|
expect($this->user->toDos)
|
||||||
->toHaveCount(1)
|
->toHaveCount(1)
|
||||||
->first()->name->toBe('Test')
|
->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 () {
|
test('an user can retrieve his to dos', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user