From 1757a0b5a0830826f12f9996329457345206d62f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 30 Oct 2020 17:02:32 -0300 Subject: [PATCH] Bug 19133: Fix tests Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/api/v1/patrons_password_recovery.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/patrons_password_recovery.t b/t/db_dependent/api/v1/patrons_password_recovery.t index 176429886d2..0716c2ebbfc 100644 --- a/t/db_dependent/api/v1/patrons_password_recovery.t +++ b/t/db_dependent/api/v1/patrons_password_recovery.t @@ -421,7 +421,16 @@ sub create_user_and_session { my $flags = ( $args->{authorized} ) ? $args->{authorized} : 0; my $categorycode = $builder->build({ source => 'Category' })->{categorycode}; - my $branchcode = $builder->build({ source => 'Branch' })->{ branchcode }; + my $branchcode = $builder->build( + { + source => 'Branch', + value => { + branchemail => 'tomasito@koha-community.org', + branchreplyto => undef, + branchreturnpath => undef + } + } + )->{branchcode}; my $dbh = C4::Context->dbh; my $borrower = $builder->build({ @@ -431,6 +440,7 @@ sub create_user_and_session { categorycode => $categorycode, lost => 0, flags => $flags, + email => 'tomasito@koha-community.org' } }); -- 2.29.2