mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 17:44:17 -08:00
3167ee91d1
Signed-off-by: snipe <snipe@snipe.net>
24 lines
506 B
PHP
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();
|
|
}
|
|
|
|
}
|