A free open source IT asset/license management system
Add validation test
Marcus Moore010f66f4c9f7
diff --git a/tests/Feature/Accessories/Ui/CreateAccessoriesTest.php b/tests/Feature/Accessories/Ui/CreateAccessoriesTest.phpindex 4c82d96039..abb3527ea1 100644--- a/tests/Feature/Accessories/Ui/CreateAccessoriesTest.php+++ b/tests/Feature/Accessories/Ui/CreateAccessoriesTest.php@@ -29,7 +29,15 @@ class CreateAccessoriesTest extends TestCasepublic function testValidDataRequiredToCreateAccessory(){- $this->markTestIncomplete();+ $this->actingAs(User::factory()->createAccessories()->create())+ ->post(route('accessories.store'), [+ //+ ])+ ->assertSessionHasErrors([+ 'name',+ 'qty',+ 'category_id',+ ]);}public function testCanCreateAccessory()