From d645b42e12aa503b07f287dd0735a52dbddf0bd5 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 20 Mar 2025 13:26:06 -0700 Subject: [PATCH] Add failing test --- .../Checkouts/Ui/BulkAssetCheckoutTest.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php diff --git a/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php new file mode 100644 index 0000000000..60f3087f48 --- /dev/null +++ b/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php @@ -0,0 +1,27 @@ +actingAs(User::factory()->checkoutAssets()->create()) + ->post(route('hardware.bulkcheckout.store'), [ + 'selected_assets' => [ + 1, + 9999999, + ], + 'checkout_to_type' => 'user', + 'assigned_user' => User::factory()->create()->id, + 'assigned_asset' => null, + 'checkout_at' => null, + 'expected_checkin' => null, + 'note' => null, + ]) + ->assertSessionHas('error', trans_choice('admin/hardware/message.multi-checkout.error', 2)); + } +}