3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-08 14:35:48 +00:00
Files
snipe-it/tests/Feature/Settings/AlertsSettingTest.php
2024-08-16 10:51:49 +01:00

24 lines
506 B
PHP

<?php
namespace Tests\Feature\Settings;
use App\Models\Asset;
use Tests\TestCase;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use App\Models\User;
use App\Models\Setting;
class AlertsSettingTest extends TestCase
{
public function testPermissionRequiredToViewAlertSettings()
{
$asset = Asset::factory()->create();
$this->actingAs(User::factory()->create())
->get(route('settings.alerts.index'))
->assertForbidden();
}
}