diff --git a/tests/Feature/TaxTypeTest.php b/tests/Feature/TaxTypeTest.php index 010ff409..e587b0dd 100644 --- a/tests/Feature/TaxTypeTest.php +++ b/tests/Feature/TaxTypeTest.php @@ -92,3 +92,14 @@ test('delete tax type', function () { $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); +});