bank_transactions.t - Punktetest für test_two_invoices
authorG. Richardson <information@kivitendo-premium.de>
Wed, 1 Feb 2017 09:59:05 +0000 (10:59 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 1 Feb 2017 12:13:10 +0000 (13:13 +0100)
t/bank/bank_transactions.t

index b5e5cad..40c1c8a 100644 (file)
@@ -270,6 +270,9 @@ sub test_two_invoices {
                                                      bank_chart_id => $bank->id,
                                                     ) or die "Couldn't create bank_transaction";
 
+  my ($agreement, $rule_matches) = $bt->get_agreement_with_invoice($ar_transaction_1);
+  is($agreement, 16, "points for ar_transaction_1 in test_two_invoices ok");
+
   $::form->{invoice_ids} = {
           $bt->id => [ $ar_transaction_1->id, $ar_transaction_2->id ]
         };