Skip to content

Commit 3853b13

Browse files
committed
ITT: assertEloquentHasMany readme info added.
1 parent 6f4dcb5 commit 3853b13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,14 @@ $this->assertEloquentTouchesNotEquals(Comment::class, ['user']);
400400

401401
#### `assertEloquentHasMany()`
402402

403+
> NOTE: In order to use this assertion, you have to create model factories for both classes.
404+
403405
Checks if Eloquent model has specified `HasMany` relation:
404406

405407
```php
406408
$this->assertEloquentHasMany(Post::class, 'comments');
407409
```
408410

409-
> NOTE: In order to use this assertion, you have to create model factories for both classes.
410-
411411
### ExceptionAsserts
412412

413413
#### `willSeeException()`

0 commit comments

Comments
 (0)