mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00: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