mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Add site name validation test
This commit is contained in:
parent
08e4ea384e
commit
714fce7e59
19
tests/Feature/Settings/BrandingSettingsTest.php
Normal file
19
tests/Feature/Settings/BrandingSettingsTest.php
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature\Settings;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
use Tests\Support\InteractsWithSettings;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class BrandingSettingsTest extends TestCase
|
||||||
|
{
|
||||||
|
use InteractsWithSettings;
|
||||||
|
|
||||||
|
public function testSiteNameIsRequired()
|
||||||
|
{
|
||||||
|
$this->actingAs(User::factory()->superuser()->create())
|
||||||
|
->post(route('settings.branding.save', ['site_name' => '']))
|
||||||
|
->assertInvalid('site_name');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue