Exemplo n.º 1
0
 public function testCreateVote()
 {
     $comment = $this->getMock('FOS\\CommentBundle\\Model\\VotableCommentInterface');
     $manager = new VoteManager($this->dispatcher, $this->em, $this->class);
     $result = $manager->createVote($comment);
     $this->assertInstanceOf('FOS\\CommentBundle\\Model\\VoteInterface', $result);
 }
Exemplo n.º 2
0
 public function testCreateVote()
 {
     $manager = new VoteManager($this->em, $this->class);
     $result = $manager->createVote();
     $this->assertInstanceOf('FOS\\CommentBundle\\Model\\VoteInterface', $result);
 }