Skip to content

A free open source IT asset/license management system

Method signature change

Marcus Moorea60ffc070298
diff --git a/tests/Feature/Checkouts/General/SettingAlertOnResponseTest.php b/tests/Feature/Checkouts/General/SettingAlertOnResponseTest.php
index c32f8d3472..f9846dd270 100644
--- a/tests/Feature/Checkouts/General/SettingAlertOnResponseTest.php
+++ b/tests/Feature/Checkouts/General/SettingAlertOnResponseTest.php
@@ -29,7 +29,7 @@ class SettingAlertOnResponseTest extends TestCase
'alert_on_response' => true,
]);
- $this->postCheckout();
+ $this->postCheckout($this->asset);
$this->assertDatabaseHas('checkout_acceptances', [
'checkoutable_type' => Asset::class,
@@ -46,7 +46,7 @@ class SettingAlertOnResponseTest extends TestCase
'alert_on_response' => false,
]);
- $this->postCheckout();
+ $this->postCheckout($this->asset);
$this->assertDatabaseHas('checkout_acceptances', [
'checkoutable_type' => Asset::class,
@@ -56,10 +56,10 @@ class SettingAlertOnResponseTest extends TestCase
]);
}
- private function postCheckout(): void
+ private function postCheckout($item): void
{
$this->actingAs($this->actor)
- ->post(route('hardware.checkout.store', $this->asset), [
+ ->post(route('hardware.checkout.store', $item), [
'checkout_to_type' => 'user',
'status_id' => (string) Statuslabel::factory()->readyToDeploy()->create()->id,
'assigned_user' => $this->assignedUser->id,