3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 17:15:33 +00:00
Files
snipe-it/tests/Feature/Checkouts/Ui/BulkAssetCheckoutTest.php
2025-03-20 13:26:06 -07:00

28 lines
834 B
PHP

<?php
namespace Tests\Feature\Checkouts\Ui;
use App\Models\User;
use Tests\TestCase;
class BulkAssetCheckoutTest extends TestCase
{
public function testHandleMissingModelBeingIncluded()
{
$this->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));
}
}