public function testTrophy()
 {
     $gamer = new Gamertrophy();
     $trophy = new Trophy();
     $trophyGet = $gamer->setTrophy($trophy)->getTrophy();
     $this->assertTrue($trophy == $trophyGet);
 }
 /**
  * Creates an Gamertrophy with gamerInstance and trophy given.
  * 
  * @param Gamerinstance $gamerInstance
  * @param Trophy $trophy
  * @return Gamertrophy
  */
 public function createGamertrophy(\TMSolution\GamificationBundle\Entity\Gamerinstance $gamerInstance, \TMSolution\GamificationBundle\Entity\Trophy $trophy)
 {
     $gamerTrophy = new Gamertrophy();
     $gamerTrophy->setDate(new \DateTime('NOW'))->setGamerinstance($gamerInstance)->setTrophy($trophy);
     $result = $this->gamerTrophyModel->create($gamerTrophy, true);
     return $result;
 }