/** * @todo Implement testAddProperty(). */ public function testAddProperty() { mysql_query("TRUNCATE TABLE `hs_hr_comp_property`", $this->connection); $prop = new CompProperty(); $prop->setPropName('new Item'); $prop->addProperty(); $res = mysql_query("SELECT * FROM `hs_hr_comp_property`", $this->connection); $row = mysql_fetch_array($res); $this->assertEquals($row['prop_name'], 'new Item'); $this->assertEquals($row['prop_id'], '1'); }