Bug 15895: Remove useless discard_changes calls

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-09-28 11:54:09 +01:00 committed by Kyle M Hall
parent 547ca4c8c1
commit 4176f6fb73
1 changed files with 0 additions and 2 deletions

View 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;