View | Details | Raw Unified | Return to bug 15585
Collapse All | Expand All

(-)a/t/db_dependent/Passwordrecovery.t (-2 / +1 lines)
Lines 134-140 ok( Koha::Patron::Password::Recovery::CompletePasswordRecovery($uuid2) == 0, "[C Link Here
134
# Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail #
134
# Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail #
135
###############################################################
135
###############################################################
136
136
137
my $borrower = shift [ Koha::Patrons->search( { userid => $userid1 } ) ];
137
my $borrower = Koha::Patrons->search( { userid => $userid1 } )->next;
138
ok( Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail($borrower, $email1, 0) == 1, "[SendPasswordRecoveryEmail] Returns 1 on success" );
138
ok( Koha::Patron::Password::Recovery::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
- 

Return to bug 15585