File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/Integration/Database Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ public function testPivotConvenientHelperReturnExpectedResult()
46
46
$ project ->contributors ()->attach ($ user );
47
47
$ project ->collaborators ()->attach ($ user2 );
48
48
49
- tap ($ project ->contributors ->first ()->pivot , function ($ pivot ) use ( $ project , $ user ) {
49
+ tap ($ project ->contributors ->first ()->pivot , function ($ pivot ) {
50
50
$ this ->assertEquals (1 , $ pivot ->getKey ());
51
51
$ this ->assertEquals (1 , $ pivot ->getQueueableId ());
52
52
$ this ->assertSame ('user_id ' , $ pivot ->getRelatedKey ());
53
53
$ this ->assertSame ('project_id ' , $ pivot ->getForeignKey ());
54
54
});
55
55
56
- tap ($ project ->collaborators ->first ()->pivot , function ($ pivot ) use ( $ project , $ user2 ) {
56
+ tap ($ project ->collaborators ->first ()->pivot , function ($ pivot ) {
57
57
$ this ->assertNull ($ pivot ->getKey ());
58
58
$ this ->assertSame ('project_id:1:user_id:2 ' , $ pivot ->getQueueableId ());
59
59
$ this ->assertSame ('user_id ' , $ pivot ->getRelatedKey ());
You can’t perform that action at this time.
0 commit comments