Added test for negative taxtype test

This commit is contained in:
harshjagad20
2021-06-01 16:32:06 +05:30
parent bcbffdcf30
commit ed966b02eb

View File

@ -92,3 +92,14 @@ test('delete tax type', function () {
$this->assertDeleted($taxType); $this->assertDeleted($taxType);
}); });
test('create negative tax type', function () {
$taxType = TaxType::factory()->raw([
'percent' => -9.99
]);
postJson('api/v1/tax-types', $taxType)->assertOk();
$this->assertDatabaseHas('tax_types', $taxType);
});