/** * @todo Implement testEditProperty(). */ public function testEditProperty() { 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); $prop = new CompProperty(); $prop->setPropName('new Item Edited'); $prop->editProperty(1); $res = mysql_query("SELECT * FROM `hs_hr_comp_property`", $this->connection); $row = mysql_fetch_array($res); $this->assertEquals($row['prop_name'], 'new Item Edited'); $this->assertEquals($row['emp_id'], '1'); $this->assertEquals($row['prop_id'], '1'); }