Fenos\Notifynder\Senders\SenderFactory::sendMultiple PHP Méthode

sendMultiple() public méthode

Send Multiple Notification Sender.
public sendMultiple ( array $infoNotifications ) : SendMultiple
$infoNotifications array
Résultat SendMultiple
    public function sendMultiple(array $infoNotifications)
    {
        return new SendMultiple($infoNotifications);
    }

Usage Example

 /** @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);
 }
All Usage Examples Of Fenos\Notifynder\Senders\SenderFactory::sendMultiple