i have stuck at a point for quite some time
i have to test a function where the parameters are extracted from the $_POST global array.
look at the following for a better clarification
my function looks like this
function getUsers()
{
extract($_POST);
$usersQry=$this->db->query("select user from user_table where org_type='".$orgType."'")
return $usersQry;
}
in the above $orgType is an index in $_POST array.
as no parameter is passed to the function getuser() i can not pass parameters as array from the test file.see below
$testdata=$this->users_model->getUsers($orgType);// i can not go for this option in test file
please post some alternatives and help me to get out of this juncture.
thanks.