ea-Geiertest
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Class: TestDBWrapper

Source Location: /test/simpletest/base/db.class.php

Class TestDBWrapper

Property Summary
boolean   $_dbDebug   enable debugging of ADOdb

[ Top ]
Method Summary
TestDBWrapper   TestDBWrapper()   constructor
void   testAddCheckDeleteClientUsers()   tests adding, checking, deleteing users assigned to clients & owner check
void   testBlob()   tests time functions
void   testCheckLogin()   tests login validation
void   testConstructor()   tests the constructor
void   testCreateClient()   tests client creation
void   testCreateUser()   tests user creation
void   testDelete()   tests delete function
void   testDeleteClient()   tests deleting of client data
void   testDeleteUser()   tests deleting of user data
void   testDrop()   tests drop function
void   testEnDecrypt()   tests encryption & decryption function
void   testEscape()   tests escape function
void   testGetClientConf()   tests fetching client configuration data
void   testGetClients()   tests get clients
void   testGetSysConf()   tests fetching system configuration data
void   testGetUserConf()   tests fetching user configuration data
void   testInsert()   tests insert function
void   testIsUser()   tests isUser function
void   testLastID()   tests lastID function
void   testLoadClientConf()   tests loading client configuration data into configuration
void   testLogout()  
void   testSelect()   tests select
void   testSelectOne()   tests single select
void   testSetPW()   tests password change
void   testSwitchToClientDB()   tests the
void   testTable()   tests table function
void   testTimeAndNow()   tests time functions
void   testUpdate()   tests update function
void   testUpdateClient()   tests update of client data
void   testUpdateClientConf()   tests update of client configuration data
void   testUpdateSysConf()   tests update of system configuration data
void   testUpdateUser()   tests update of user data
void   testUpdateUserConf()   tests update of user configuration data

[ Top ]
Properties
boolean   $_dbDebug = false [line 55]

enable debugging of ADOdb


[ Top ]
Methods
Constructor TestDBWrapper  [line 60]

  TestDBWrapper TestDBWrapper( )

constructor



[ Top ]
testAddCheckDeleteClientUsers  [line 698]

  void testAddCheckDeleteClientUsers( )

tests adding, checking, deleteing users assigned to clients & owner check



[ Top ]
testBlob  [line 1198]

  void testBlob( )

tests time functions

checks inserting time fields



[ Top ]
testCheckLogin  [line 174]

  void testCheckLogin( )

tests login validation

checks for not logged in, wrong logindata, valid logindata, valid session



[ Top ]
testConstructor  [line 73]

  void testConstructor( )

tests the constructor

checks connection to database



[ Top ]
testCreateClient  [line 448]

  void testCreateClient( )

tests client creation

checks result



[ Top ]
testCreateUser  [line 267]

  void testCreateUser( )

tests user creation

checks result



[ Top ]
testDelete  [line 1083]

  void testDelete( )

tests delete function

checks valid delete, double delete, nonexsiting table



[ Top ]
testDeleteClient  [line 490]

  void testDeleteClient( )

tests deleting of client data

checks function & result



[ Top ]
testDeleteUser  [line 343]

  void testDeleteUser( )

tests deleting of user data

checks function & result



[ Top ]
testDrop  [line 1132]

  void testDrop( )

tests drop function

checks dropping the table



[ Top ]
testEnDecrypt  [line 974]

  void testEnDecrypt( )

tests encryption & decryption function

checks encryption and decryption of string with default, wrong & valid keys



[ Top ]
testEscape  [line 955]

  void testEscape( )

tests escape function

compares escaped string with mysql escaped string



[ Top ]
testGetClientConf  [line 592]

  void testGetClientConf( )

tests fetching client configuration data

checks

  • admin
  • non admin



[ Top ]
testGetClients  [line 513]

  void testGetClients( )

tests get clients

checks result



[ Top ]
testGetSysConf  [line 761]

  void testGetSysConf( )

tests fetching system configuration data

checks

  • admin
  • non admin



[ Top ]
testGetUserConf  [line 376]

  void testGetUserConf( )

tests fetching user configuration data

checks

  • admin
  • non admin



[ Top ]
testInsert  [line 1022]

  void testInsert( )

tests insert function

checks valid insert, dublicate entry, nonexsiting table



[ Top ]
testIsUser  [line 241]

  void testIsUser( )

tests isUser function

checks non existing & existing user returning name or id



[ Top ]
testLastID  [line 1107]

  void testLastID( )

tests lastID function

checks autoincrement functionality of database and lastId function



[ Top ]
testLoadClientConf  [line 617]

  void testLoadClientConf( )

tests loading client configuration data into configuration

checks

  • admin
  • non admin



[ Top ]
testLogout  [line 211]

  void testLogout( )



[ Top ]
testSelect  [line 858]

  void testSelect( )

tests select

checks verious types of selects



[ Top ]
testSelectOne  [line 912]

  void testSelectOne( )

tests single select

checks verious types of selects



[ Top ]
testSetPW  [line 290]

  void testSetPW( )

tests password change

checks function & result



[ Top ]
testSwitchToClientDB  [line 128]

  void testSwitchToClientDB( )

tests the

checks connection to database



[ Top ]
testTable  [line 1003]

  void testTable( )

tests table function

checks added prefix



[ Top ]
testTimeAndNow  [line 1161]

  void testTimeAndNow( )

tests time functions

checks inserting time fields



[ Top ]
testUpdate  [line 1052]

  void testUpdate( )

tests update function

checks valid & invalid updates



[ Top ]
testUpdateClient  [line 562]

  void testUpdateClient( )

tests update of client data

checks function & result



[ Top ]
testUpdateClientConf  [line 654]

  void testUpdateClientConf( )

tests update of client configuration data

checks

  • new variables,
  • old variables with old values
  • old variables with new values



[ Top ]
testUpdateSysConf  [line 787]

  void testUpdateSysConf( )

tests update of system configuration data

checks

  • new variables,
  • old variables with old values
  • old variables with new values
  • wront user



[ Top ]
testUpdateUser  [line 307]

  void testUpdateUser( )

tests update of user data

checks function & result



[ Top ]
testUpdateUserConf  [line 404]

  void testUpdateUserConf( )

tests update of user configuration data

checks

  • new variables,
  • old variables with old values
  • old variables with new values



[ Top ]

Documentation generated on Sun, 09 Sep 2007 17:08:42 +0200 by phpDocumentor 1.3.1