mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Added test for negative taxtype test
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user