add test
This commit is contained in:
1 parent
a172cdeb37
commit
c0810f047b
1 file changed
+2
-1
@@ -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