Skip to content

A free open source IT asset/license management system

Removed unecessary assets creation

snipe2883e7919388
diff --git a/tests/Feature/Settings/AlertsSettingTest.php b/tests/Feature/Settings/AlertsSettingTest.php
index 87e7c0286a..bb837981a8 100644
--- a/tests/Feature/Settings/AlertsSettingTest.php
+++ b/tests/Feature/Settings/AlertsSettingTest.php
@@ -14,10 +14,20 @@ class AlertsSettingTest extends TestCase
{
public function testPermissionRequiredToViewAlertSettings()
{
- $asset = Asset::factory()->create();
$this->actingAs(User::factory()->create())
->get(route('settings.alerts.index'))
->assertForbidden();
}
+ public function testAdminCCEmailArrayCanBeSaved()
+ {
+ $response = $this->actingAs(User::factory()->superuser()->create())
+ ->post(route('settings.alerts.save', ['alert_email' => '[email protected],[email protected]']))
+ ->assertStatus(302)
+ ->assertValid('alert_email')
+ ->assertRedirect(route('settings.index'))
+ ->assertSessionHasNoErrors();
+ $this->followRedirects($response)->assertSee('alert-success');
+ }
+
}