Bugzilla – Attachment 72532 Details for
Bug 18570
Password recovery e-mail only sent after message queue is processed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18570: Prove that the letter code parameter tweaks work
Bug-18570-Prove-that-the-letter-code-parameter-twe.patch (text/plain), 1.63 KB, created by
Josef Moravec
on 2018-03-08 11:37:56 UTC
(
hide
)
Description:
Bug 18570: Prove that the letter code parameter tweaks work
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-03-08 11:37:56 UTC
Size:
1.63 KB
patch
obsolete
>From df5fc4bf10707f3372f789888360e7919464973b Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Thu, 8 Mar 2018 00:13:09 +0000 >Subject: [PATCH] Bug 18570: Prove that the letter code parameter tweaks work > >Run the following commands: >kshell >prove -v t/db_dependent/Letters.t > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > t/db_dependent/Letters.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t >index d8e96a6..4625ca2 100644 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -632,7 +632,7 @@ subtest 'TranslateNotices' => sub { > > subtest 'SendQueuedMessages' => sub { > >- plan tests => 3; >+ plan tests => 4; > t::lib::Mocks::mock_preference( 'SMSSendDriver', 'Email' ); > my $patron = Koha::Patrons->find($borrowernumber); > $dbh->do(q| >@@ -655,6 +655,13 @@ subtest 'SendQueuedMessages' => sub { > $schema->resultset('MessageQueue')->search({borrowernumber => $borrowernumber,status => 'sent'})->delete(); #clear borrower queue > $my_message->{to_address} = 'fixme@kidclamp.iswrong'; > $message_id = C4::Letters::EnqueueLetter($my_message); >+ >+ my $number_attempted = C4::Letters::SendQueuedMessages({ >+ borrowernumber => -1, # -1 still triggers the borrowernumber condition >+ letter_code => 'PASSWORD_RESET', >+ }); >+ is ( $number_attempted, 0, 'There were no password reset messages for SendQueuedMessages to attempt.' ); >+ > C4::Letters::SendQueuedMessages(); > $sms_message_address = $schema->resultset('MessageQueue')->search({ > borrowernumber => $borrowernumber, >-- >2.1.4
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 18570
:
72499
|
72524
|
72525
|
72526
|
72531
|
72532
|
72533
|
72597
|
72599
|
72600
|
72601
|
72602
|
73221