[Koha-bugs] [Bug 18494] Fix Letters.t (follow-up of 5260)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Apr 25 17:28:59 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18494
--- Comment #1 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 62689
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62689&action=edit
Bug 18494: Fix Letters.t (follow-up of 5260)
koha at kohacommunity:~/kohaclone$ perl t/db_dependent/Letters.t
1..81
ok 1 - use C4::Context;
ok 2 - use C4::Members;
ok 3 - use C4::Acquisition;
ok 4 - use C4::Biblio;
ok 5 - use C4::Letters;
Can't call method "get_expiry_date" on an undefined value at
/home/koha/kohaclone/C4/Members.pm line 465.
Looks like your test exited with 7 just after 5.
Problem is at line:
my $patron_category = $builder->build({ source => 'Category' });
Change to:
my $patron_category = $builder->build({ source => 'Category'
})->{categorycode};
To test:
1. Before applying patch, run t/db_dependent/Letters.t
2. Observe above failure
3. Apply patch
4. Run t/db_dependent/Letters.t
5. Watch it pass
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list