/** * @todo Implement testGetPropertyList(). */ public function testGetPropertyList() { mysql_query("TRUNCATE TABLE `hs_hr_comp_property`", $this->connection); mysql_query("INSERT INTO `hs_hr_comp_property` (`prop_name`,`emp_id`) VALUES ('new Item','1')", $this->connection); mysql_query("INSERT INTO `hs_hr_comp_property` (`prop_name`,`emp_id`) VALUES ('new Item 2','10')", $this->connection); $prop = new CompProperty(); $prop->setPropName('new Item Edited'); $rows = $prop->getPropertyList(); $this->assertEquals($rows[0]['prop_name'], 'new Item'); $this->assertEquals($rows[0]['emp_id'], '1'); $this->assertEquals($rows[0]['prop_id'], '1'); $this->assertEquals($rows[1]['prop_name'], 'new Item 2'); $this->assertEquals($rows[1]['emp_id'], '10'); $this->assertEquals($rows[1]['prop_id'], '2'); }