Bug 16405: Fix Circulation/NoIssuesChargeGuarantees.t test 2
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 May 2016 09:40:27 +0000 (10:40 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 4 May 2016 14:23:34 +0000 (14:23 +0000)
Resolves:
Failed test 'Patron cannot check out item due to debt for guarantee'
at t/db_dependent/Circulation/NoIssuesChargeGuarantees.t line 63.
          got: '10'
     expected: '10.00'

Test plan:
Run the test again.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Circulation/NoIssuesChargeGuarantees.t

index 614c513..a5cbb62 100644 (file)
@@ -60,7 +60,7 @@ is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" );
 
 manualinvoice( $guarantee->{borrowernumber}, undef, undef, 'L', 10.00 );
 ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} );
-is( $issuingimpossible->{DEBT_GUARANTEES}, '10.00', "Patron cannot check out item due to debt for guarantee" );
+is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" );
 
 $schema->storage->txn_rollback;