first commit
This commit is contained in:
12
tests/Unit/ServiceAllocationServiceTest.php
Normal file
12
tests/Unit/ServiceAllocationServiceTest.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Models\ServiceEntry;
|
||||
|
||||
test('service entry calculates total amount from quantity and unit price', function () {
|
||||
$entry = new ServiceEntry([
|
||||
'quantity' => 2471,
|
||||
'unit_price' => 15.50,
|
||||
]);
|
||||
|
||||
expect($entry->totalAmount())->toBe(38300.5);
|
||||
});
|
||||
Reference in New Issue
Block a user