Skip to content

Commit

Permalink
ITT: Readme fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Mar 16, 2017
1 parent f71d697 commit 6159e95
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,18 @@ Checks if Eloquent model has specified `HasMany` relation:
$this->assertEloquentHasMany(Post::class, 'comments');
```

Assuming that `Post` class has `comments` relation:

```php
class Post extends Model
{
public function comments()
{
return $this->hasMany(Comment::class);
}
}
```

#### `assertEloquentHasCreateRelationMethod()`

> NOTE: In order to use this assertion, you have to create model factories for both classes.
Expand Down

0 comments on commit 6159e95

Please sign in to comment.