/** * @param int $motionId * @param int $memberId * * @return bool */ public function hasAlreadyVoted($motionId, $memberId) { return $this->repository->hasAlreadyVoted($motionId, $memberId); }
public function testCreateVote() { $this->repository->createVote(1, 2, 'Alexander', '2016-06-08 14:50:35', '127.0.0.1', 1); $this->assertTrue($this->repository->hasAlreadyVoted(1, 2)); }