Skip to content

Commit

Permalink
added hasOneThrough missing relation
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Mar 18, 2020
1 parent b78bc90 commit 99cea3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EloquentSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ trait EloquentSuite
'morphToMany' => Relations\MorphToMany::class,
'morphedByMany' => Relations\MorphToMany::class,
'belongsToMany' => Relations\BelongsToMany::class,
'hasOneThrough' => Relations\HasOneThrough::class,
'hasManyThrough' => Relations\HasManyThrough::class,
];

Expand Down Expand Up @@ -94,7 +95,7 @@ public function createRelationMock(string $model, string $relation, string $rela
* @param string $relation Relation method (belongsTo, hasMany etc)
* @param string|null $related Classname of the related model
* @param ...string $params Optional params for the relation
* @return [\PHPUnit\Framework\MockObject\MockObject, \Mockery\MockInterface]
* @return \PHPUnit\Framework\MockObject\MockObject[]|\Mockery\MockInterface[]
*/
public function createRelationChainMock(string $model, string $relation, string $related = null, ...$params) : array
{
Expand Down

0 comments on commit 99cea3a

Please sign in to comment.