From f09174c15b2445b391fde57d91ffd2c69ac98525 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 29 Apr 2016 08:01:26 +0200 Subject: [PATCH] Bug 16390: Accounts.t does not need MPL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test fails if you do not have a MPL branch, but a closer look shows that we only need to replace one occurrence. Test plan: Run Accounts.t Signed-off-by: Marc VĂ©ron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall https://bugs.koha-community.org/show_bug.cgi?id=9543 --- t/db_dependent/Accounts.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t index 4bad302..0fb71f2 100644 --- a/t/db_dependent/Accounts.t +++ b/t/db_dependent/Accounts.t @@ -106,7 +106,7 @@ my @test_data = ( { amount => -5 , days_ago => $days + 1 , description =>'purge_zero_balance_fees should not delete fees with negative amout owed after threshold day' , delete => 0 } ); -my $borrower = Koha::Patron->new( { firstname => 'Test', surname => 'Patron', categorycode => 'PT', branchcode => 'MPL' } )->store(); +my $borrower = Koha::Patron->new( { firstname => 'Test', surname => 'Patron', categorycode => 'PT', branchcode => $branchcode } )->store(); for my $data ( @test_data ) { $sth->execute($borrower->borrowernumber, $data->{amount}, $data->{days_ago}, $data->{description}); -- 1.9.1