From 99cea3a2af88d034d36f690a57aaba8e7621a7bd Mon Sep 17 00:00:00 2001 From: Jarek Tkaczyk Date: Wed, 18 Mar 2020 21:01:38 +0800 Subject: [PATCH] added hasOneThrough missing relation --- src/EloquentSuite.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EloquentSuite.php b/src/EloquentSuite.php index b769837..869e43d 100644 --- a/src/EloquentSuite.php +++ b/src/EloquentSuite.php @@ -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, ]; @@ -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 {