Bugzilla – Attachment 140787 Details for
Bug 31587
Basket not accessible from ACQORDER notice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31587: Regression tests
Bug-31587-Regression-tests.patch (text/plain), 2.97 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-09-20 14:47:56 UTC
(
hide
)
Description:
Bug 31587: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-09-20 14:47:56 UTC
Size:
2.97 KB
patch
obsolete
>From e5f0d900759ced05cc0dec5dba1c61896ad6b5c0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 20 Sep 2022 11:46:23 -0300 >Subject: [PATCH] Bug 31587: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 426df4aea2..7afcc60814 100755 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -341,7 +341,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','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order>');}); >-$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('orderacquisition','TESTACQORDER','Acquisition Order','Order','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order>');}); >+$dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('orderacquisition','TESTACQORDER','Acquisition Order','Order','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order> Basket name: [% basket.basketname %]');}); > > # Test that _parseletter doesn't modify its parameters bug 15429 > { >@@ -378,7 +378,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", >@@ -443,7 +443,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.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31587
:
140786
|
140787
|
140788
|
141537
|
141538