Пример #1
0
 public function it_send_renew_rental_email(MailService $mailService, RentalEvent $event, Rental $rental)
 {
     $event->getRental()->shouldBeCalled();
     $mailService->sendEmail($rental, Message::RENEW_RENTAL_MESSAGE)->shouldBeCalled();
     $this->sendRenewRentalEmail($event);
 }
Пример #2
0
 /**
  * @param RentalEvent $event
  */
 public function sendRenewRentalEmail(RentalEvent $event)
 {
     $this->mailService->sendEmail($event->getRental(), Message::RENEW_RENTAL_MESSAGE);
 }