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); }
public function testCreateVote() { $manager = new VoteManager($this->em, $this->class); $result = $manager->createVote(); $this->assertInstanceOf('FOS\\CommentBundle\\Model\\VoteInterface', $result); }