Skip to content

Commit a45a894

Browse files
committed
Apply fixes from StyleCI
1 parent f88ffd1 commit a45a894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/Database/EloquentPivotTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ public function testPivotConvenientHelperReturnExpectedResult()
4646
$project->contributors()->attach($user);
4747
$project->collaborators()->attach($user2);
4848

49-
tap($project->contributors->first()->pivot, function ($pivot) use ($project, $user) {
49+
tap($project->contributors->first()->pivot, function ($pivot) {
5050
$this->assertEquals(1, $pivot->getKey());
5151
$this->assertEquals(1, $pivot->getQueueableId());
5252
$this->assertSame('user_id', $pivot->getRelatedKey());
5353
$this->assertSame('project_id', $pivot->getForeignKey());
5454
});
5555

56-
tap($project->collaborators->first()->pivot, function ($pivot) use ($project, $user2) {
56+
tap($project->collaborators->first()->pivot, function ($pivot) {
5757
$this->assertNull($pivot->getKey());
5858
$this->assertSame('project_id:1:user_id:2', $pivot->getQueueableId());
5959
$this->assertSame('user_id', $pivot->getRelatedKey());

0 commit comments

Comments
 (0)