From 32b44d9c9b9d9ae339647c32181e61d30d884291 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 20 Sep 2022 11:46:23 -0300 Subject: [PATCH] Bug 31587: Regression tests Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit fc7cc1467d5115de07e0c3f8a8229f3bdaf81739) Signed-off-by: Lucas Gass (cherry picked from commit a09d2258156632b04ba13bdf53a34c7ef37bf073) Signed-off-by: Arthur Suzuki Signed-off-by: Wainui Witika-Park --- t/db_dependent/Letters.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index 14afd461b9..fdc22b7c77 100755 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -388,7 +388,7 @@ $prepared_letter = GetPreparedLetter(( is( $prepared_letter->{content}, q|And also this one:| . output_pref({ dt => $yesterday_night }) . q|.|, 'dateonly test 3' ); $dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('claimacquisition','TESTACQCLAIM','Acquisition Claim','Item Not Received','<>|<>|Ordernumber <> (<>) (<> ordered)');}); -$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('orderacquisition','TESTACQORDER','Acquisition Order','Order','<>|<>|Ordernumber <> (<>) (<> ordered)');}); +$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('orderacquisition','TESTACQORDER','Acquisition Order','Order','<>|<>|Ordernumber <> (<>) (<> ordered) Basket name: [% basket.basketname %]');}); # Test that _parseletter doesn't modify its parameters bug 15429 { @@ -425,7 +425,7 @@ my $booksellerid = $bookseller->id; Koha::Acquisition::Bookseller::Contact->new( { name => 'John Smith', phone => '0123456x1', claimacquisition => 1, orderacquisition => 1, booksellerid => $booksellerid } )->store; Koha::Acquisition::Bookseller::Contact->new( { name => 'Leo Tolstoy', phone => '0123456x2', claimissues => 1, booksellerid => $booksellerid } )->store; -my $basketno = NewBasket($booksellerid, 1); +my $basketno = NewBasket($booksellerid, 1, 'The basket name'); my $budgetid = C4::Budgets::AddBudget({ budget_code => "budget_code_test_letters", @@ -490,7 +490,7 @@ warning_like { "SendAlerts is using the mocked send_or_die routine (orderacquisition)"; is($err, 1, "Successfully sent order."); is($email_object->email->header('To'), 'testemail@mydomain.com', "mailto correct in sent order"); -is($email_object->email->body, 'my vendor|John Smith|Ordernumber ' . $ordernumber . ' (Silence in the library) (1 ordered)', 'Order notice text constructed successfully'); +is($email_object->email->body, 'my vendor|John Smith|Ordernumber ' . $ordernumber . ' (Silence in the library) (1 ordered) Basket name: The basket name', 'Order notice text constructed successfully'); my $mocked_koha_email = Test::MockModule->new('Koha::Email'); $mocked_koha_email->mock( 'send_or_die', sub { -- 2.39.5