snipe-it/tests/Feature/Checkins/Ui/LicenseCheckinTest.php
2024-08-06 13:30:34 -07:00

22 lines
489 B
PHP

<?php
namespace Tests\Feature\Checkins\Ui;
use App\Models\LicenseSeat;
use App\Models\User;
use Tests\TestCase;
final class LicenseCheckinTest extends TestCase
{
public function testCheckingInLicenseRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())
->post(route('licenses.checkin.save', [
'licenseId' => LicenseSeat::factory()->assignedToUser()->create()->id,
]))
->assertForbidden();
}
}