mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Add test case
This commit is contained in:
parent
de403f6e07
commit
76c9015aa9
|
@ -27,6 +27,13 @@ class CreateAccessoriesTest extends TestCase
|
|||
->assertViewIs('accessories.edit');
|
||||
}
|
||||
|
||||
public function testRequiresPermissionToCreateAccessory()
|
||||
{
|
||||
$this->actingAs(User::factory()->create())
|
||||
->post(route('accessories.store'))
|
||||
->assertForbidden();
|
||||
}
|
||||
|
||||
public function testValidDataRequiredToCreateAccessory()
|
||||
{
|
||||
$this->actingAs(User::factory()->createAccessories()->create())
|
||||
|
|
Loading…
Reference in a new issue