Bug 15895: Remove useless discard_changes calls
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Sep 2016 10:54:09 +0000 (11:54 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 27 Sep 2016 13:49:44 +0000 (13:49 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Accounts.t

index 50a99fd..f78882a 100644 (file)
@@ -155,8 +155,6 @@ subtest "recordpayment() tests" => sub {
 
     my $line1 = Koha::Account::Line->new({ borrowernumber => $borrower->borrowernumber, amountoutstanding => 100 })->store();
     my $line2 = Koha::Account::Line->new({ borrowernumber => $borrower->borrowernumber, amountoutstanding => 200 })->store();
-    $line1->_result->discard_changes;
-    $line2->_result->discard_changes;
 
     $sth = $dbh->prepare("SELECT count(*) FROM accountlines");
     $sth->execute;