mirror of
https://github.com/snipe/snipe-it.git
synced 2025-12-01 11:30:10 +00:00
Add validation test
This commit is contained in:
@ -29,7 +29,15 @@ class CreateAccessoriesTest extends TestCase
|
|||||||
|
|
||||||
public function testValidDataRequiredToCreateAccessory()
|
public function testValidDataRequiredToCreateAccessory()
|
||||||
{
|
{
|
||||||
$this->markTestIncomplete();
|
$this->actingAs(User::factory()->createAccessories()->create())
|
||||||
|
->post(route('accessories.store'), [
|
||||||
|
//
|
||||||
|
])
|
||||||
|
->assertSessionHasErrors([
|
||||||
|
'name',
|
||||||
|
'qty',
|
||||||
|
'category_id',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCanCreateAccessory()
|
public function testCanCreateAccessory()
|
||||||
|
|||||||
Reference in New Issue
Block a user