Lines 20-26
use Modern::Perl;
Link Here
|
20 |
use C4::Context; |
20 |
use C4::Context; |
21 |
use C4::Letters; |
21 |
use C4::Letters; |
22 |
use Koha::Database; |
22 |
use Koha::Database; |
23 |
use Koha::Borrowers; |
23 |
use Koha::Patrons; |
24 |
|
24 |
|
25 |
use Test::More tests => 16; |
25 |
use Test::More tests => 16; |
26 |
|
26 |
|
Lines 134-140
ok( C4::Passwordrecovery::CompletePasswordRecovery($uuid2) == 0, "[CompletePassw
Link Here
|
134 |
# C4::Passwordrecovery::SendPasswordRecoveryEmail # |
134 |
# C4::Passwordrecovery::SendPasswordRecoveryEmail # |
135 |
################################################### |
135 |
################################################### |
136 |
|
136 |
|
137 |
my $borrower = shift [ Koha::Borrowers->search( { userid => $userid1 } ) ]; |
137 |
my $borrower = shift [ Koha::Patrons->search( { userid => $userid1 } ) ]; |
138 |
ok( C4::Passwordrecovery::SendPasswordRecoveryEmail($borrower, $email1, 0) == 1, "[SendPasswordRecoveryEmail] Returns 1 on success" ); |
138 |
ok( C4::Passwordrecovery::SendPasswordRecoveryEmail($borrower, $email1, 0) == 1, "[SendPasswordRecoveryEmail] Returns 1 on success" ); |
139 |
my $letters = C4::Letters::GetQueuedMessages( { borrowernumber => $borrowernumber1, limit => 99 } ); |
139 |
my $letters = C4::Letters::GetQueuedMessages( { borrowernumber => $borrowernumber1, limit => 99 } ); |
140 |
ok( scalar @$letters == 1, "[SendPasswordRecoveryEmail] There is a letter in the queue for our borrower"); |
140 |
ok( scalar @$letters == 1, "[SendPasswordRecoveryEmail] There is a letter in the queue for our borrower"); |
141 |
- |
|
|