/** * Update object in the DB. Return false because the object is not in the DB */ public function testUpdateFail() { $objectnew = new evalcomix_tool('', '1', 'titulo de la escala2', 'list'); $id = $objectnew->update(); $this->assertTrue($id);
/** * Update object in the DB */ public function testUpdate() { $objectnew = new evalcomix_tool('169', '1', 'titulo de la escala2', 'list'); $id = $objectnew->update(); //Timemodified to 0 in the DB... why?? $this->assertTrue($id);