/** * Determines whether two emails are the same email message * * @param Email $email1 * @param Email $email2 * @return bool */ protected function areEmailsEqual(Email $email1, Email $email2) { return $email1->getMessageId() === $email2->getMessageId(); }
public function testMessageIdGetterAndSetter() { $entity = new Email(); $entity->setMessageId('test'); $this->assertEquals('test', $entity->getMessageId()); }