/**
  * Test creation of fav post, where post already exists in db, but not favorite bookkeeping,
  * and so we are just adding an entry to the favorites table.
  */
 public function testAddFavoritePostExists()
 {
     $favoriter_id = 21;
     //user 2
     $vals = $this->buildPostArray2();
     $res = $this->dao->addFavorite($favoriter_id, $vals);
     $this->assertEqual($res, 1);
     // now try again-- this time the 'add' should return 0
     $res = $this->dao->addFavorite($favoriter_id, $vals);
     $this->assertEqual($res, 0);
 }