Lines 262-268
subtest 'UpdateFine tests' => sub {
Link Here
|
262 |
$fine = $fines->next; |
262 |
$fine = $fines->next; |
263 |
is( $fine->amount+0, 80, "First fine amount unchanged" ); |
263 |
is( $fine->amount+0, 80, "First fine amount unchanged" ); |
264 |
is( $fine->amountoutstanding+0, 80, "First fine amountoutstanding unchanged" ); |
264 |
is( $fine->amountoutstanding+0, 80, "First fine amountoutstanding unchanged" ); |
265 |
my $fine2 = $fines->next; |
265 |
$fine2 = $fines->next; |
266 |
is( $fine2->amount+0, 20, "Second fine capped at '20' by MaxFine" ); |
266 |
is( $fine2->amount+0, 20, "Second fine capped at '20' by MaxFine" ); |
267 |
is( $fine2->amountoutstanding+0, 20, "Second fine amountoutstanding capped at '20' by MaxFine" ); |
267 |
is( $fine2->amountoutstanding+0, 20, "Second fine amountoutstanding capped at '20' by MaxFine" ); |
268 |
is( $fine2->issue_id, $checkout2->issue_id, "Second fine is associated with the correct issue" ); |
268 |
is( $fine2->issue_id, $checkout2->issue_id, "Second fine is associated with the correct issue" ); |
269 |
- |
|
|