Skip to content

Commit

Permalink
fix ResourceCollectionQueryTest::collection test;
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed Jun 26, 2023
1 parent 2dd7e0f commit 76a0b47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Feature/Http/Resources/ResourceCollectionQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ protected function setUp(): void {
* @return void
*/
public function collection(): void {
$resource = PostCollection::make( $this->posts )->withAllCommentsQuery();
$resource = PostCollection::make( $this->posts )
->skipRelationsForModel( [ Post::class => 'comments' ] )
->withAllCommentsQuery();
$comments = $this->posts->map( fn( Post $post ) => $post->comments )->flatten();

self::assertEquals(
Expand Down

1 comment on commit 76a0b47

@vercel
Copy link

@vercel vercel bot commented on 76a0b47 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

valravn – ./

valravn.vercel.app
valravn-hans-thomas.vercel.app
valravn-git-master-hans-thomas.vercel.app

Please sign in to comment.