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); }
/** * @param RentalEvent $event */ public function sendRenewRentalEmail(RentalEvent $event) { $this->mailService->sendEmail($event->getRental(), Message::RENEW_RENTAL_MESSAGE); }