From 8ee92ca9b5f06d1256daabc4ca2e90c23fb8a10b 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 Signed-off-by: Kyle M Hall --- 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 176429886d..0716c2ebbf 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.24.1 (Apple Git-126)