mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 14:39:49 -08:00
22 lines
483 B
PHP
22 lines
483 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature\Checkins\Ui;
|
||
|
|
||
|
use App\Models\LicenseSeat;
|
||
|
use App\Models\User;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class LicenseCheckinTest extends TestCase
|
||
|
{
|
||
|
public function testCheckingInLicenseRequiresCorrectPermission()
|
||
|
{
|
||
|
$this->actingAs(User::factory()->create())
|
||
|
->post(route('licenses.checkin.save', [
|
||
|
'licenseId' => LicenseSeat::factory()->assignedToUser()->create()->id,
|
||
|
]))
|
||
|
->assertForbidden();
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|