Skip to content

Commit

Permalink
Remove commented test lines in PostgreSQLSectorDAO.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaragunde committed Jan 25, 2022
1 parent d8b73be commit b8f9d25
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions model/dao/SectorDAO/PostgreSQLSectorDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,44 +196,3 @@ public function delete(SectorVO $sectorVO) {
return $affectedRows;
}
}




/*//Uncomment these lines in order to do a simple test of the Dao
$dao = new PostgreSQLSectorDAO();
// We create a new sector
$sector = new sectorVO();
$sector->setName("Telenet");
$dao->create($sector);
print ("New sector Id is ". $sector->getId() ."\n");
// We search for the new Id
$sector = $dao->getById($sector->getId());
print ("New sector Id found is ". $sector->getId() ."\n");
// We update the sector with a differente name
$sector->setName("Intranet");
$dao->update($sector);
// We search for the new name
$sector = $dao->getById($sector->getId());
print ("New sector name found is ". $sector->getName() ."\n");
// We delete the new sector
$dao->delete($sector);*/

0 comments on commit b8f9d25

Please sign in to comment.