sendMultiple() публичный Метод

Send Multiple Notification Sender.
public sendMultiple ( array $infoNotifications ) : SendMultiple
$infoNotifications array
Результат SendMultiple
Пример #1
0
 /** @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);
 }
Пример #2
0
 /**
  * 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);
 }