mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Pass the correct variable to the route helper
This commit is contained in:
parent
df23fd0dee
commit
7154d23759
|
@ -17,8 +17,10 @@ class AccessoryCheckinTest extends TestCase
|
||||||
|
|
||||||
public function testCheckingInAccessoryRequiresCorrectPermission()
|
public function testCheckingInAccessoryRequiresCorrectPermission()
|
||||||
{
|
{
|
||||||
|
$accessory = Accessory::factory()->checkedOutToUser()->create();
|
||||||
|
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
->post(route('accessories.checkin.store', Accessory::factory()->checkedOutToUser()->create()))
|
->post(route('accessories.checkin.store', $accessory->users->first()->pivot->id))
|
||||||
->assertForbidden();
|
->assertForbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue