Skip to content

Commit fbfdb66

Browse files
committed
fix(tests): including morphTo relations
1 parent da9015e commit fbfdb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Feature/StandardShowOperationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getting_a_single_resource_with_polymorphic_included_relation():
138138

139139
Gate::policy(Comment::class, GreenPolicy::class);
140140

141-
$response = $this->get("/api/comments/{$post->id}?include=commentable.image");
141+
$response = $this->get("/api/comments/{$comment->id}?include=commentable.image");
142142

143143
$this->assertResourceShown($response, $comment->fresh('commentable.image')->toArray());
144144
}

0 commit comments

Comments
 (0)