Test Labs - norbertsackey/ash-sweb-2016-group14 GitHub Wiki
labsTest Class Reference
Inheritance diagram for labsTest: Detailed Description
Version
1.0
Parameters
declares $lab_name,$lab_id,$lab_capacity & $lab_location, $equip_id & $supplier_id as variables of Labs class
Public Member Functions
setUp ()
testadd_lab ()
testsearch_lab ()
testedit_lab ()
testdelete_lab ()
Member Function Documentation
setUp ( )
testadd_lab ( )
boolean testadd_lab() allows an admin to add labs by their names, id and physical locations
Parameters
String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $lab_location,// The assigned location of a lab integer $capacity,// The equipment capcity of a lab integer $equip_id,// The assigned id for an equipment integer $supplierID,// The assigned id for a supplier
Returns
$this->assertsEquals()//this returns true or false
testdelete_lab ( )
boolean testdelete_lab() allows an admin to remove labs by their names, id and physical locations
Parameters
integer $lab_id,// The assigned id of a lab
Returns
$this->assertsEquals()//this returns true or false
testedit_lab ( )
boolean testedit_lab() allows an admin to update labs by their names, id and physical locations
Parameters
String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $lab_location,// The assigned location of a lab integer $capacity,// The equipment capcity of a lab
Returns
$this->assertsEquals()//this returns true or false
testsearch_lab ( )
boolean testsearch_lab() allows a user to search labs by their names, id and physical locations
Parameters
String $lab_name,// The name of a lab integer $lab_id,// The assigned id of a lab varchar $lab_location,// The assigned location of a lab integer $equip_id,// The assigned id for an equipment
Returns
$this->assertsEquals()//this returns true or false
The documentation for this class was generated from the following file:•C:/Users/Jacque/Downloads/se/testLabs.php