Skip to content

A free open source IT asset/license management system

Updated tests with new text

snipe87e65893d3ac
diff --git a/tests/Feature/Users/Ui/BulkActions/BulkDeleteUsersTest.php b/tests/Feature/Users/Ui/BulkActions/BulkDeleteUsersTest.php
index c64d167df0..c7d3a00738 100644
--- a/tests/Feature/Users/Ui/BulkActions/BulkDeleteUsersTest.php
+++ b/tests/Feature/Users/Ui/BulkActions/BulkDeleteUsersTest.php
@@ -222,7 +222,7 @@ class BulkDeleteUsersTest extends TestCase
'action_type' => 'checkin from',
'target_id' => $userA->id,
'target_type' => User::class,
- 'note' => 'Bulk checkin items',
+ 'note' => 'Bulk checkin items on user bulk edit/delete',
'item_type' => License::class,
'item_id' => $licenseSeatForUserA->license->id,
]);
@@ -231,7 +231,7 @@ class BulkDeleteUsersTest extends TestCase
'action_type' => 'checkin from',
'target_id' => $userC->id,
'target_type' => User::class,
- 'note' => 'Bulk checkin items',
+ 'note' => 'Bulk checkin items on user bulk edit/delete',
'item_type' => License::class,
'item_id' => $licenseSeatForUserC->license->id,
]);
@@ -283,11 +283,15 @@ class BulkDeleteUsersTest extends TestCase
private function assertActionLogCheckInEntryFor(User $user, Model $model): void
{
+ $note = $model instanceof Accessory
+ ? 'Bulk checkin accessory on user bulk edit/delete'
+ : 'Bulk checkin items on user bulk edit/delete';
+
$this->assertDatabaseHas('action_logs', [
'action_type' => 'checkin from',
'target_id' => $user->id,
'target_type' => User::class,
- 'note' => 'Bulk checkin items',
+ 'note' => $note,
'item_type' => get_class($model),
'item_id' => $model->id,
]);
@@ -299,7 +303,7 @@ class BulkDeleteUsersTest extends TestCase
'action_type' => 'checkin from',
'target_id' => $user->id,
'target_type' => User::class,
- 'note' => 'Bulk checkin items',
+ 'note' => 'Bulk checkin items on user bulk edit/delete',
'item_type' => get_class($model),
'item_id' => $model->id,
]);