TestDBWrapper TestDBWrapper(
)
|
|
constructor
void testAddCheckDeleteClientUsers(
)
|
|
tests adding, checking, deleteing users assigned to clients & owner check
tests time functions
checks inserting time fields
tests login validation
checks for not logged in, wrong logindata, valid logindata, valid session
tests the constructor
checks connection to database
tests client creation
checks result
tests user creation
checks result
tests delete function
checks valid delete, double delete, nonexsiting table
tests deleting of client data
checks function & result
tests deleting of user data
checks function & result
tests drop function
checks dropping the table
tests encryption & decryption function
checks encryption and decryption of string with default, wrong & valid keys
tests escape function
compares escaped string with mysql escaped string
void testGetClientConf(
)
|
|
tests fetching client configuration data
checks
tests get clients
checks result
tests fetching system configuration data
checks
tests fetching user configuration data
checks
tests insert function
checks valid insert, dublicate entry, nonexsiting table
tests isUser function
checks non existing & existing user returning name or id
tests lastID function
checks autoincrement functionality of database and lastId function
void testLoadClientConf(
)
|
|
tests loading client configuration data into configuration
checks
tests select
checks verious types of selects
tests single select
checks verious types of selects
tests password change
checks function & result
void testSwitchToClientDB(
)
|
|
tests the
checks connection to database
tests table function
checks added prefix
tests time functions
checks inserting time fields
tests update function
checks valid & invalid updates
tests update of client data
checks function & result
void testUpdateClientConf(
)
|
|
tests update of client configuration data
checks
- new variables,
- old variables with old values
- old variables with new values
void testUpdateSysConf(
)
|
|
tests update of system configuration data
checks
- new variables,
- old variables with old values
- old variables with new values
- wront user
tests update of user data
checks function & result
void testUpdateUserConf(
)
|
|
tests update of user configuration data
checks
- new variables,
- old variables with old values
- old variables with new values