use C4::Context;
use C4::Letters qw( GetQueuedMessages );
use Koha::Database;
-use Koha::DateUtils;
+use Koha::DateUtils qw( dt_from_string );
use Koha::Patrons;
use t::lib::TestBuilder;
my $borrower = Koha::Patrons->search( { userid => $userid1 } )->next;
my $success;
warning_is {
- $success = Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail($borrower, $email1, 0); }
+ $success = Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail($borrower, $email1 ); }
"Fake sendmail",
'[SendPasswordRecoveryEmail] expecting fake sendmail';
ok( $success == 1, '[SendPasswordRecoveryEmail] Returns 1 on success');
my $tempuuid1 = $bpr->next->uuid;
warning_is {
- Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail($borrower, $email1, 1); }
+ Koha::Patron::Password::Recovery::SendPasswordRecoveryEmail($borrower, $email1 ); }
"Fake sendmail",
'[SendPasswordRecoveryEmail] expecting fake sendmail';