<<

STARTUP METHODS

These are run once, before the main test methods in this module.

startup_create_detailed_borrower

Creates a new borrower to be used by the testing methods. Also populates the class hash with values to be compared from the database retrieval.

TESTING METHODS

borrower_detail_get

Tests the functionality of the GetMemberDetails method in C4::Members. Validates the join on categories table works as well as the extra fields the method gets from outside of either the borrowers and categories table like amountoutstanding and user flags.

cardnumber_detail_get

This method tests the capability of GetMemberDetails to search on cardnumber. There doesn't seem to be any current calls to GetMemberDetail using cardnumber though, so this test may not be necessary.

SHUTDOWN METHDOS

These get run once, after the main test methods in this module.

shutdown_remove_new_borrower

Removes references in the Class to the new borrower created in the startup methods.

<<