mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-18 09:11:00 -08:00
20 lines
430 B
PHP
20 lines
430 B
PHP
<?php
|
|
|
|
namespace Feature\Assets\Ui;
|
|
|
|
use App\Models\Asset;
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class EditAssetTest extends TestCase
|
|
{
|
|
public function testPageCanBeAccessed(): void
|
|
{
|
|
$asset = Asset::factory()->create();
|
|
$user = User::factory()->editAssets()->create();
|
|
$response = $this->actingAs($user)->get(route('hardware.edit', $asset->id));
|
|
|
|
$response->assertStatus(200);
|
|
}
|
|
}
|