Send Multiple Notification Sender.
public sendMultiple ( array $infoNotifications ) : |
||
$infoNotifications | array | |
return |
/** @test */ function it_send_multiple_notification(SenderFactory $senderFactory, DefaultSender $sender, StoreNotification $storeNotification) { $notifications = []; $senderFactory->sendMultiple($notifications)->shouldBeCalled()->willReturn($sender); $sender->send($storeNotification)->shouldBeCalled()->willReturn(1); $this->sendMultiple($notifications)->shouldReturn(1); }
/** * Send Multiple method to get fully working * older version * * @param $info * @return SendMultiple */ public function sendMultiple($info) { return $this->senderFactory->sendMultiple($info)->send($this->storeNotification); }