mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -08:00
Add validation test
This commit is contained in:
parent
9c6718b459
commit
010f66f4c9
|
@ -29,7 +29,15 @@ class CreateAccessoriesTest extends TestCase
|
|||
|
||||
public function testValidDataRequiredToCreateAccessory()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
$this->actingAs(User::factory()->createAccessories()->create())
|
||||
->post(route('accessories.store'), [
|
||||
//
|
||||
])
|
||||
->assertSessionHasErrors([
|
||||
'name',
|
||||
'qty',
|
||||
'category_id',
|
||||
]);
|
||||
}
|
||||
|
||||
public function testCanCreateAccessory()
|
||||
|
|
Loading…
Reference in a new issue