mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -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');
|
->assertViewIs('accessories.edit');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRequiresPermissionToCreateAccessory()
|
||||||
|
{
|
||||||
|
$this->actingAs(User::factory()->create())
|
||||||
|
->post(route('accessories.store'))
|
||||||
|
->assertForbidden();
|
||||||
|
}
|
||||||
|
|
||||||
public function testValidDataRequiredToCreateAccessory()
|
public function testValidDataRequiredToCreateAccessory()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->createAccessories()->create())
|
$this->actingAs(User::factory()->createAccessories()->create())
|
||||||
|
|
Loading…
Reference in a new issue