Bugzilla – Attachment 72524 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: Tests to prove if email send was attempted
Bug-18570-Tests-to-prove-if-email-send-was-attempt.patch (text/plain), 1.32 KB, created by
Mark Tompsett
on 2018-03-08 00:18:28 UTC
(
hide
)
Description:
Bug 18570: Tests to prove if email send was attempted
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-03-08 00:18:28 UTC
Size:
1.32 KB
patch
obsolete
>From 88c5c849faa7f2a7ad44efe29f9948b53ded77dd Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Wed, 7 Mar 2018 23:59:54 +0000 >Subject: [PATCH] Bug 18570: Tests to prove if email send was attempted > >kshell >prove -v t/db_dependent/Passwordrecovery.t >--- > t/db_dependent/Passwordrecovery.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Passwordrecovery.t b/t/db_dependent/Passwordrecovery.t >index f11893f..dafe6b1 100755 >--- a/t/db_dependent/Passwordrecovery.t >+++ b/t/db_dependent/Passwordrecovery.t >@@ -23,7 +23,7 @@ use Koha::Database; > use Koha::Patrons; > use t::lib::TestBuilder; > >-use Test::More tests => 18; >+use Test::More tests => 20; > > use_ok('Koha::Patron::Password::Recovery'); > >@@ -192,5 +192,10 @@ $letters = C4::Letters::GetQueuedMessages( { borrowernumber => $borrowernumber1, > ok( $tempuuid1 ne $tempuuid2, "[SendPasswordRecoveryEmail] UPDATE == ON changes uuid in the database and updates the expirydate"); > ok( scalar @$letters == 2, "[SendPasswordRecoveryEmail] UPDATE == ON sends a new letter with updated uuid"); > >+foreach my $letter (@$letters) { >+ ok( $letter->{status} eq 'failed', >+ 'Test SendPasswordRecoverEmail failed due to TestBuilder Sender not being a valid email address as expected.' ); >+} >+ > $schema->storage->txn_rollback(); > >-- >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