https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18494

            Bug ID: 18494
           Summary: Fix Letters.t (follow-up of 5260)
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

koha@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};

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to