mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-03 09:57:45 -08:00
e8ec11652f
Signed-off-by: snipe <snipe@snipe.net>
22 lines
491 B
PHP
22 lines
491 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Checkins\Ui;
|
|
|
|
use App\Models\Component;
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class ComponentCheckinTest extends TestCase
|
|
{
|
|
public function testCheckingInComponentRequiresCorrectPermission()
|
|
{
|
|
$this->actingAs(User::factory()->create())
|
|
->post(route('components.checkin.store', [
|
|
'componentID' => Component::factory()->checkedOutToAsset()->create()->id,
|
|
]))
|
|
->assertForbidden();
|
|
}
|
|
|
|
|
|
}
|