Пример #1
0
 /**
  * @test
  */
 public function setCommitCountSetsCommitCount()
 {
     $this->fixture->setCommitCount(42);
     $this->assertEquals(42, $this->fixture->getCommitCount());
 }
Пример #2
0
 /**
  * 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);
 }