Skip to content

Commit

Permalink
Whoops. Bad copy paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Sep 5, 2024
1 parent edee2ad commit 2a104eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/RelationshipsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function can_update_sort_orders_when_saving_belongs_to_many_relationship(
]));

Relationships::for($author)
->with(['posts' => [$posts[0]->id, $posts[2]->id, $posts[1]->id]])
->with(['pivottedPosts' => [$posts[0]->id, $posts[2]->id, $posts[1]->id]])
->save();

$this->assertDatabaseHas('post_author', ['post_id' => $posts[0]->id, 'author_id' => $author->id, 'pivot_sort_order' => 0]);
Expand Down

0 comments on commit 2a104eb

Please sign in to comment.