/** * @test */ public function setUserEmailSetsUserEmail() { $this->fixture->setUserEmail('*****@*****.**'); $this->assertEquals($this->fixture->getUserEmail(), '*****@*****.**'); }
/** * Sends a mail to the ceremony master to notify him about a newly elected * topic award. * * @param \Mrimann\CoMo\Domain\Model\Award $award * @return void */ protected function notifyCeremonyMasterOnNewTopicAward(\Mrimann\CoMo\Domain\Model\Award $award) { $messageBody = 'We\'ve just elected the next topic-award:' . "\n\n" . 'The award in the category "' . $award->getType() . '" for the month ' . $award->getMonth() . ' was won by ' . $award->getUserName() . ' (' . $award->getUserEmail() . ') with ' . $award->getCommitCount() . ' commits.'; $this->sendNotificationMail($this->settings['ceremonyMasterEmail'], 'Ceremony Master', 'New topic award elected', $messageBody); }